Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009507/0.0009507, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009833/0.0009833, allocations: 139.5 kB / 24.97 MB, free: 8.359 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.073/1.073, allocations: 173.4 MB / 201.5 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.169e-05/3.329e-05, allocations: 6.25 kB / 268.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.00225/0.002283, allocations: 1.53 MB / 269.6 MB, free: 5.168 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006246/0.002908, allocations: 430.7 kB / 270 MB, free: 4.742 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.541e-05/0.002983, allocations: 0 / 270 MB, free: 4.742 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.33e-05/0.003017, allocations: 3.938 kB / 270 MB, free: 4.738 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.712e-05/0.003094, allocations: 7.875 kB / 270.1 MB, free: 4.73 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.003352, allocations: 27.91 kB / 270.1 MB, free: 4.703 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.534e-05/0.003447, allocations: 39.86 kB / 270.1 MB, free: 4.664 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.355e-05/0.003541, allocations: 11.98 kB / 270.1 MB, free: 4.652 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.505e-05/0.003636, allocations: 27.84 kB / 270.2 MB, free: 4.625 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.888e-05/0.003685, allocations: 19.92 kB / 270.2 MB, free: 4.605 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.003704, allocations: 0 / 270.2 MB, free: 4.605 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.957e-06/0.003713, allocations: 4 kB / 270.2 MB, free: 4.602 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.938e-05/0.003732, allocations: 4 kB / 270.2 MB, free: 4.598 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.152e-05/0.003764, allocations: 11.92 kB / 270.2 MB, free: 4.586 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.231e-05/0.003856, allocations: 27.91 kB / 270.2 MB, free: 4.559 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.594e-06/0.003859, allocations: 0 / 270.2 MB, free: 4.559 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.00386, allocations: 0 / 270.2 MB, free: 4.559 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.003864, allocations: 4 kB / 270.2 MB, free: 4.555 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003561/0.00422, allocations: 368.6 kB / 270.6 MB, free: 4.16 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.00426, allocations: 12.92 kB / 270.6 MB, free: 4.148 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.344e-05/0.004303, allocations: 12.89 kB / 270.6 MB, free: 4.137 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.004452, allocations: 124.5 kB / 270.7 MB, free: 3.988 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.098e-06/0.004462, allocations: 8.312 kB / 270.7 MB, free: 3.98 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-06/0.004471, allocations: 384 / 270.7 MB, free: 3.98 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.004711, allocations: 118.2 kB / 270.9 MB, free: 3.848 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.004717, allocations: 192 / 270.9 MB, free: 3.848 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-06/0.004727, allocations: 384 / 270.9 MB, free: 3.848 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.004735, allocations: 7.938 kB / 270.9 MB, free: 3.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.084e-05/0.004766, allocations: 4 kB / 270.9 MB, free: 3.836 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.662e-05/0.004863, allocations: 120.6 kB / 271 MB, free: 3.684 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.539e-05/0.004938, allocations: 46.98 kB / 271 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.427e-05/0.004972, allocations: 15.72 kB / 271 MB, free: 3.605 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.004992, allocations: 4.031 kB / 271.1 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.005016, allocations: 37.39 kB / 271.1 MB, free: 3.555 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.005017, allocations: 4 kB / 271.1 MB, free: 3.551 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001733/0.00519, allocations: 61.58 kB / 271.2 MB, free: 3.484 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.005237, allocations: 55.34 kB / 271.2 MB, free: 3.418 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.741e-05/0.005325, allocations: 173.9 kB / 271.4 MB, free: 3.23 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.005337, allocations: 25.7 kB / 271.4 MB, free: 3.199 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.715e-05/0.005384, allocations: 130.9 kB / 271.5 MB, free: 3.066 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.366e-06/0.005388, allocations: 0 / 271.5 MB, free: 3.066 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-05/0.005417, allocations: 19.38 kB / 271.5 MB, free: 3.039 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.005552, allocations: 0.4884 MB / 272 MB, free: 2.539 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.3e-06/0.005557, allocations: 0 / 272 MB, free: 2.539 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.009e-06/0.005562, allocations: 4 kB / 272 MB, free: 2.535 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.063e-05/0.005593, allocations: 119.2 kB / 272.2 MB, free: 2.418 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.96e-05/0.005622, allocations: 119.2 kB / 272.3 MB, free: 2.301 MB / 250.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.659e-05/0.005669, allocations: 33.64 kB / 272.3 MB, free: 2.262 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.373e-05/0.005713, allocations: 127.2 kB / 272.4 MB, free: 2.137 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.242e-05/0.005745, allocations: 119.2 kB / 272.5 MB, free: 2.02 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.693e-05/0.005812, allocations: 242.4 kB / 272.8 MB, free: 1.781 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.297e-05/0.005845, allocations: 127.1 kB / 272.9 MB, free: 1.656 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.273e-05/0.005908, allocations: 246.3 kB / 273.1 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.447e-05/0.005972, allocations: 127.1 kB / 273.3 MB, free: 1.289 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.006005, allocations: 123.3 kB / 273.4 MB, free: 1.168 MB / 250.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 (0): * Single equations (assignments): 0 * 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 0.0001033/0.006108, allocations: 279.8 kB / 273.7 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.549e-05/0.006174, allocations: 49.64 kB / 273.7 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.291e-05/0.006207, allocations: 8 kB / 273.7 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.006209, allocations: 4 kB / 273.7 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.006214, allocations: 7.875 kB / 273.7 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.006218, allocations: 0 / 273.7 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.021e-05/0.006278, allocations: 120.6 kB / 273.9 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.006282, allocations: 240 / 273.9 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.206e-05/0.006374, allocations: 11.98 kB / 273.9 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.006378, allocations: 0 / 273.9 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.006385, allocations: 7.938 kB / 273.9 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.006388, allocations: 0 / 273.9 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.00639, allocations: 3.984 kB / 273.9 MB, free: 0.625 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.94e-05/0.00647, allocations: 88.33 kB / 274 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.337e-05/0.006493, allocations: 7.984 kB / 274 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.006505, allocations: 4 kB / 274 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.812e-05/0.006523, allocations: 4 kB / 274 MB, free: 0.5 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.534e-06/0.006525, allocations: 0 / 274 MB, free: 0.5 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-06/0.00653, allocations: 0 / 274 MB, free: 0.5 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.499e-05/0.006575, allocations: 139 kB / 274.1 MB, free: 372 kB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006575, allocations: 0 / 274.1 MB, free: 372 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001383/0.006714, allocations: 4 kB / 274.1 MB, free: 368 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 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 8.947e-05/0.006803, allocations: 99.25 kB / 274.2 MB, free: 260 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.454e-05/0.006858, allocations: 8 kB / 274.2 MB, free: 252 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.006859, allocations: 0 / 274.2 MB, free: 252 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.00686, allocations: 0 / 274.2 MB, free: 252 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002051/0.007065, allocations: 21.05 kB / 274.2 MB, free: 228 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004273/0.007492, allocations: 137 kB / 274.4 MB, free: 64 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.447e-05/0.007536, allocations: 63.36 kB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.608e-06/0.007546, allocations: 0 / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.737e-05/0.007573, allocations: 12.48 kB / 274.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.007574, allocations: 0 / 274.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of Templates: time 0.001936/0.00951, allocations: 335.2 kB / 274.8 MB, free: 15.64 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7646038790699095]