Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002152/0.002152, allocations: 108.3 kB / 19.7 MB, free: 1.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 216.7 kB / 22.99 MB, free: 4.973 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.734/1.734, allocations: 207.7 MB / 233.8 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2404/0.2404, allocations: 44.27 MB / 330.3 MB, free: 9.297 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003235/0.003235, allocations: 67.84 kB / 468 MB, free: 3.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1383, allocations: 61.05 MB / 0.5166 GB, free: 6.656 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004024/0.1424, allocations: 2.107 MB / 0.5187 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.1441, allocations: 0.78 MB / 0.5195 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000158/0.1443, allocations: 7.938 kB / 0.5195 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.1445, allocations: 31.59 kB / 0.5195 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002759/0.1447, allocations: 75.31 kB / 0.5196 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.1451, allocations: 139.8 kB / 0.5197 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004509/0.1456, allocations: 359 kB / 0.52 GB, free: 3.145 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002455/0.1458, allocations: 80.8 kB / 0.5201 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002128/0.146, allocations: 147.4 kB / 0.5203 GB, free: 2.918 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.1462, allocations: 139.3 kB / 0.5204 GB, free: 2.781 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.585e-05/0.1463, allocations: 32 kB / 0.5204 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.546e-05/0.1464, allocations: 39.94 kB / 0.5205 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.637e-05/0.1465, allocations: 75.77 kB / 0.5205 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.1466, allocations: 127.4 kB / 0.5207 GB, free: 2.512 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004541/0.1471, allocations: 362.4 kB / 0.521 GB, free: 2.156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1471, allocations: 0 / 0.521 GB, free: 2.156 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1471, allocations: 0 / 0.521 GB, free: 2.156 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.1471, allocations: 0 / 0.521 GB, free: 2.156 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001442/0.1485, allocations: 0.6797 MB / 0.5217 GB, free: 1.434 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.1486, allocations: 8.031 kB / 0.5217 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.1487, allocations: 44.69 kB / 0.5217 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000586/0.1493, allocations: 261.5 kB / 0.522 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.774e-05/0.1493, allocations: 24.88 kB / 0.522 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.609e-05/0.1494, allocations: 32.33 kB / 0.522 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005702/0.1499, allocations: 264.1 kB / 0.5223 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.15, allocations: 0 / 0.5223 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.648e-05/0.15, allocations: 12 kB / 0.5223 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.15, allocations: 7.938 kB / 0.5223 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004368/0.1505, allocations: 177.9 kB / 0.5225 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.1519, allocations: 0.6282 MB / 0.5231 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004721/0.1523, allocations: 182.8 kB / 0.5233 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002138/0.1525, allocations: 88.81 kB / 0.5233 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.154e-05/0.1526, allocations: 15.92 kB / 0.5234 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004736/0.1531, allocations: 231.2 kB / 0.5236 GB, free: 15.4 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.995e-06/0.1531, allocations: 0 / 0.5236 GB, free: 15.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008673/0.1539, allocations: 377.2 kB / 0.5239 GB, free: 15.03 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/0.154, allocations: 63.39 kB / 0.524 GB, free: 14.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002489/0.1543, allocations: 225.1 kB / 0.5242 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.254e-05/0.1543, allocations: 37.7 kB / 0.5242 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.1545, allocations: 176.7 kB / 0.5244 GB, free: 14.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.842e-05/0.1545, allocations: 95.22 kB / 0.5245 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.1547, allocations: 78 kB / 0.5246 GB, free: 14.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.1549, allocations: 338.8 kB / 0.5249 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.1551, allocations: 92.69 kB / 0.525 GB, free: 13.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003176/0.1554, allocations: 226.3 kB / 0.5252 GB, free: 13.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000555/0.1559, allocations: 332.9 kB / 0.5255 GB, free: 13.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1559, allocations: 0 / 0.5255 GB, free: 13.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006614/0.1566, allocations: 372.9 kB / 0.5259 GB, free: 12.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.1566, allocations: 11.98 kB / 0.5259 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.1566, allocations: 4 kB / 0.5259 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.662e-05/0.1567, allocations: 8.406 kB / 0.5259 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003023/0.157, allocations: 79.84 kB / 0.526 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.157, allocations: 11.98 kB / 0.526 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00018/0.1572, allocations: 31.78 kB / 0.526 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.113e-05/0.1572, allocations: 19.98 kB / 0.526 GB, free: 12.69 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001935/0.1574, allocations: 165.7 kB / 0.5262 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.022e-05/0.1574, allocations: 35.8 kB / 0.5262 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006965/0.1581, allocations: 323.4 kB / 0.5265 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.1581, allocations: 7.938 kB / 0.5265 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.1581, allocations: 3.938 kB / 0.5265 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1581, allocations: 0 / 0.5265 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000958/0.1591, allocations: 0.5995 MB / 0.5271 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1591, allocations: 0 / 0.5271 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.1594, allocations: 51.91 kB / 0.5272 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.186e-06/0.1594, allocations: 7.938 kB / 0.5272 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/0.1594, allocations: 15.98 kB / 0.5272 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1594, allocations: 0 / 0.5272 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1594, allocations: 96 / 0.5272 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009634/0.1604, allocations: 0.5188 MB / 0.5277 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.86e-05/0.1604, allocations: 31.81 kB / 0.5277 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.506e-05/0.1605, allocations: 19.88 kB / 0.5278 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.1607, allocations: 19.92 kB / 0.5278 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.358e-05/0.1607, allocations: 23.95 kB / 0.5278 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.825e-05/0.1608, allocations: 15.98 kB / 0.5278 GB, free: 10.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001759/0.161, allocations: 164.5 kB / 0.528 GB, free: 10.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.161, allocations: 0 / 0.528 GB, free: 10.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003713/0.1613, allocations: 67.84 kB / 0.528 GB, free: 10.57 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001661/0.1615, allocations: 111.2 kB / 0.5281 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005697/0.1621, allocations: 247.6 kB / 0.5284 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.1621, allocations: 4 kB / 0.5284 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002584/0.1623, allocations: 116.8 kB / 0.5285 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.1627, allocations: 36.73 kB / 0.5285 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.1638, allocations: 0.6027 MB / 0.5291 GB, free: 9.426 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.164, allocations: 173.9 kB / 0.5293 GB, free: 9.234 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.1642, allocations: 43.23 kB / 0.5293 GB, free: 9.191 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.1643, allocations: 35.42 kB / 0.5294 GB, free: 9.156 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1643, allocations: 0 / 0.5294 GB, free: 9.156 MB / 414.1 MB Notification: Performance of Templates: time 0.00737/0.1716, allocations: 2.766 MB / 0.5321 GB, free: 6.41 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.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: 5.823606645688415]