Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008784/0.0008784, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003475/0.003475, allocations: 160.8 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8794/0.8794, allocations: 177 MB / 204.9 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 325.8 MB, free: 15.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.837e-05/3.034e-05, allocations: 3.125 kB / 325.8 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002712/0.002742, allocations: 1.566 MB / 327.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004543/0.003196, allocations: 143.5 kB / 327.5 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.884e-05/0.003295, allocations: 0 / 327.5 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.316e-05/0.003348, allocations: 3.938 kB / 327.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.003518, allocations: 15.86 kB / 327.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.003786, allocations: 35.83 kB / 327.6 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.003912, allocations: 43.84 kB / 327.6 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.004026, allocations: 8 kB / 327.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.352e-05/0.004079, allocations: 11.98 kB / 327.6 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.923e-05/0.004128, allocations: 11.92 kB / 327.6 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.368e-05/0.004162, allocations: 4 kB / 327.6 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.713e-05/0.004179, allocations: 4 kB / 327.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.828e-05/0.004257, allocations: 23.91 kB / 327.7 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.806e-05/0.004305, allocations: 8 kB / 327.7 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.004495, allocations: 47.75 kB / 327.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.004499, allocations: 0 / 327.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.004501, allocations: 0 / 327.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.004509, allocations: 0 / 327.7 MB, free: 13.41 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005165/0.005025, allocations: 290.1 kB / 328 MB, free: 13.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.00507, allocations: 19.91 kB / 328 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.938e-05/0.005109, allocations: 8.891 kB / 328 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002246/0.005334, allocations: 133.7 kB / 328.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.005347, allocations: 4.375 kB / 328.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.005359, allocations: 4.375 kB / 328.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002999/0.005659, allocations: 117.5 kB / 328.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.005669, allocations: 192 / 328.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.005678, allocations: 384 / 328.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.005684, allocations: 384 / 328.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.977e-05/0.005743, allocations: 27.92 kB / 328.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002846/0.006028, allocations: 213.3 kB / 328.5 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001732/0.006201, allocations: 53.2 kB / 328.6 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.309e-05/0.006254, allocations: 25.77 kB / 328.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.00628, allocations: 4 kB / 328.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.006305, allocations: 38.5 kB / 328.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.423e-06/0.006307, allocations: 0 / 328.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002217/0.006528, allocations: 85.5 kB / 328.7 MB, free: 12.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.006584, allocations: 81.05 kB / 328.8 MB, free: 12.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.006696, allocations: 138.1 kB / 328.9 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.006707, allocations: 25.7 kB / 329 MB, free: 11.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.864e-05/0.006755, allocations: 88.14 kB / 329 MB, free: 11.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.006771, allocations: 0 / 329 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.969e-05/0.0068, allocations: 13.67 kB / 329.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.006908, allocations: 318.8 kB / 329.4 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.439e-05/0.006933, allocations: 7.984 kB / 329.4 MB, free: 11.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.829e-05/0.006951, allocations: 8.125 kB / 329.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.275e-05/0.006994, allocations: 16.84 kB / 329.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.006996, allocations: 0 / 329.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.821e-05/0.007074, allocations: 49.62 kB / 329.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.007087, allocations: 4 kB / 329.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.007093, allocations: 3.938 kB / 329.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.007109, allocations: 0 / 329.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.073e-05/0.007149, allocations: 11.92 kB / 329.5 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.007155, allocations: 4.094 kB / 329.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.908e-05/0.007174, allocations: 4 kB / 329.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.007179, allocations: 0 / 329.5 MB, free: 11.44 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.434e-05/0.007253, allocations: 113.8 kB / 329.6 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.853e-05/0.007312, allocations: 49.64 kB / 329.6 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.475e-05/0.007347, allocations: 16.28 kB / 329.7 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.00735, allocations: 3.984 kB / 329.7 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.007356, allocations: 0 / 329.7 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.007359, allocations: 4.172 kB / 329.7 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.007481, allocations: 113.3 kB / 329.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.007483, allocations: 8 kB / 329.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.745e-05/0.00752, allocations: 7.984 kB / 329.8 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.007525, allocations: 4 kB / 329.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.007531, allocations: 0 / 329.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.007535, allocations: 7.922 kB / 329.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.007537, allocations: 0 / 329.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001319/0.007668, allocations: 160.4 kB / 330 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.537e-05/0.007704, allocations: 19.94 kB / 330 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.007716, allocations: 0 / 330 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.897e-05/0.007765, allocations: 3.938 kB / 330 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.471e-05/0.0078, allocations: 15.92 kB / 330 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.007805, allocations: 4 kB / 330 MB, free: 10.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001069/0.007912, allocations: 105.8 kB / 330.1 MB, free: 10.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007912, allocations: 0 / 330.1 MB, free: 10.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002238/0.008136, allocations: 4 kB / 330.1 MB, free: 10.74 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.109e-05/0.008227, allocations: 95.19 kB / 330.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.008341, allocations: 27.91 kB / 330.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.008344, allocations: 0 / 330.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.18e-05/0.008365, allocations: 12.06 kB / 330.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.008711, allocations: 23.95 kB / 330.3 MB, free: 10.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003476/0.009059, allocations: 179.3 kB / 330.4 MB, free: 10.37 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.05e-05/0.009139, allocations: 75.33 kB / 330.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.974e-05/0.009169, allocations: 8.5 kB / 330.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of SimCode: time 9.32e-07/0.00917, allocations: 0 / 330.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of Templates: time 0.002025/0.0112, allocations: 0.6829 MB / 331.2 MB, free: 9.586 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.143321968615055]