Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.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.0009686/0.0009686, allocations: 78.19 kB / 21.42 MB, free: 3.082 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.001632/0.001632, allocations: 151.2 kB / 24.81 MB, free: 9.277 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.061/1.061, allocations: 173.3 MB / 201.4 MB, free: 9.238 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.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.705e-05/2.915e-05, allocations: 2.312 kB / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp): time 0.002492/0.002521, allocations: 1.518 MB / 269.9 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006358/0.003157, allocations: 398.9 kB / 270.3 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.416e-05/0.003231, allocations: 7.938 kB / 270.3 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.425e-05/0.003265, allocations: 0 / 270.3 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.744e-05/0.003343, allocations: 7.875 kB / 270.3 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002314/0.003574, allocations: 35.83 kB / 270.4 MB, free: 4.23 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.015e-05/0.003664, allocations: 35.86 kB / 270.4 MB, free: 4.195 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.2e-05/0.003756, allocations: 7.984 kB / 270.4 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.636e-05/0.003833, allocations: 19.98 kB / 270.4 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.949e-05/0.003872, allocations: 11.92 kB / 270.5 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.003897, allocations: 8 kB / 270.5 MB, free: 4.148 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.061e-05/0.003908, allocations: 4 kB / 270.5 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.587e-05/0.003934, allocations: 4 kB / 270.5 MB, free: 4.141 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.989e-05/0.003964, allocations: 11.98 kB / 270.5 MB, free: 4.129 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.673e-05/0.00406, allocations: 27.91 kB / 270.5 MB, free: 4.102 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.004062, allocations: 0 / 270.5 MB, free: 4.102 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.004063, allocations: 0 / 270.5 MB, free: 4.102 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.004068, allocations: 0 / 270.5 MB, free: 4.102 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.0003341/0.004402, allocations: 372.6 kB / 270.9 MB, free: 3.703 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.004451, allocations: 8.922 kB / 270.9 MB, free: 3.695 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.875e-05/0.00448, allocations: 12.89 kB / 270.9 MB, free: 3.684 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.004627, allocations: 128.5 kB / 271 MB, free: 3.531 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.004638, allocations: 4.375 kB / 271 MB, free: 3.527 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.574e-06/0.004646, allocations: 384 / 271 MB, free: 3.527 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.004851, allocations: 110.2 kB / 271.1 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.004858, allocations: 192 / 271.1 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.004866, allocations: 384 / 271.1 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.004872, allocations: 7.938 kB / 271.1 MB, free: 3.395 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.207e-05/0.004894, allocations: 11.92 kB / 271.1 MB, free: 3.383 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.791e-05/0.004992, allocations: 97.27 kB / 271.2 MB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.879e-05/0.005051, allocations: 43.03 kB / 271.3 MB, free: 3.207 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.386e-05/0.005074, allocations: 19.75 kB / 271.3 MB, free: 3.184 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.005098, allocations: 0 / 271.3 MB, free: 3.184 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.005125, allocations: 41.33 kB / 271.3 MB, free: 3.133 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 7.12e-07/0.005126, allocations: 0 / 271.3 MB, free: 3.133 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001437/0.005269, allocations: 49.62 kB / 271.4 MB, free: 3.078 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.00531, allocations: 59.41 kB / 271.5 MB, free: 3.008 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.204e-05/0.005392, allocations: 173.8 kB / 271.6 MB, free: 2.82 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.005403, allocations: 25.7 kB / 271.6 MB, free: 2.789 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.396e-05/0.005457, allocations: 130.9 kB / 271.8 MB, free: 2.656 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.503e-06/0.005458, allocations: 0 / 271.8 MB, free: 2.656 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.557e-05/0.005484, allocations: 19.38 kB / 271.8 MB, free: 2.629 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.005608, allocations: 492.1 kB / 272.3 MB, free: 2.137 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.507e-06/0.005612, allocations: 0 / 272.3 MB, free: 2.137 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.609e-06/0.005617, allocations: 0 / 272.3 MB, free: 2.137 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.969e-05/0.005646, allocations: 123.2 kB / 272.4 MB, free: 2.016 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.95e-05/0.005676, allocations: 123.2 kB / 272.5 MB, free: 1.895 MB / 250.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.074e-05/0.005716, allocations: 29.64 kB / 272.5 MB, free: 1.859 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.731e-05/0.005754, allocations: 135.2 kB / 272.7 MB, free: 1.727 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-05/0.005785, allocations: 119.2 kB / 272.8 MB, free: 1.609 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.966e-05/0.005855, allocations: 242.3 kB / 273 MB, free: 1.371 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.338e-05/0.005898, allocations: 127.2 kB / 273.2 MB, free: 1.246 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.062e-05/0.005979, allocations: 238.4 kB / 273.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.474e-05/0.006053, allocations: 127.1 kB / 273.5 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.4e-05/0.006097, allocations: 123.2 kB / 273.6 MB, free: 0.7656 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.0001601/0.006257, allocations: 283.8 kB / 273.9 MB, free: 488 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.612e-05/0.006354, allocations: 49.59 kB / 274 MB, free: 432 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.704e-05/0.006401, allocations: 11.98 kB / 274 MB, free: 412 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.006403, allocations: 4 kB / 274 MB, free: 408 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.006406, allocations: 0 / 274 MB, free: 408 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.006412, allocations: 7.938 kB / 274 MB, free: 400 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.67e-05/0.006488, allocations: 89.27 kB / 274.1 MB, free: 284 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.006492, allocations: 4 kB / 274.1 MB, free: 280 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.947e-05/0.006571, allocations: 7.984 kB / 274.1 MB, free: 272 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.006575, allocations: 4 kB / 274.1 MB, free: 268 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.238e-06/0.006579, allocations: 0 / 274.1 MB, free: 268 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.006581, allocations: 0 / 274.1 MB, free: 268 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.006582, allocations: 0 / 274.1 MB, free: 268 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.631e-05/0.006648, allocations: 72.47 kB / 274.2 MB, free: 172 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.27e-05/0.006661, allocations: 15.89 kB / 274.2 MB, free: 156 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.679e-06/0.006671, allocations: 0 / 274.2 MB, free: 156 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.967e-05/0.00669, allocations: 4 kB / 274.2 MB, free: 152 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.826e-06/0.006693, allocations: 0 / 274.2 MB, free: 152 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/0.006698, allocations: 4 kB / 274.2 MB, free: 148 kB / 250.7 MB Notification: Performance of sorting global known variables: time 5.027e-05/0.006748, allocations: 131.5 kB / 274.3 MB, free: 16 kB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006748, allocations: 0 / 274.3 MB, free: 16 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001971/0.006945, allocations: 4 kB / 274.3 MB, free: 12 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 0.0001066/0.007052, allocations: 91.25 kB / 274.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.399e-05/0.007106, allocations: 12.25 kB / 274.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.007108, allocations: 0 / 274.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.2e-07/0.007108, allocations: 0 / 274.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.007335, allocations: 28.97 kB / 274.4 MB, free: 15.87 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002564/0.007591, allocations: 133.1 kB / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.37e-05/0.007635, allocations: 59.34 kB / 274.6 MB, free: 15.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.276e-05/0.007648, allocations: 0 / 274.6 MB, free: 15.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.944e-05/0.007697, allocations: 70.2 kB / 274.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.007698, allocations: 0 / 274.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of Templates: time 0.002173/0.009872, allocations: 439 kB / 275.1 MB, free: 15.15 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedRamp/TimeBasedRamp.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.683480827137828]