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.001866/0.001866, 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.002279/0.002279, allocations: 217.5 kB / 22.99 MB, free: 4.977 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.506/1.506, allocations: 207.7 MB / 233.8 MB, free: 9.801 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.2425/0.2425, allocations: 44.27 MB / 330.4 MB, free: 9.301 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: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [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.002311/0.002311, allocations: 71.89 kB / 467.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1391, allocations: 61.05 MB / 0.5161 GB, free: 7.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004467/0.1436, allocations: 2.103 MB / 0.5182 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001835/0.1454, allocations: 0.7839 MB / 0.519 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002517/0.1457, allocations: 7.938 kB / 0.519 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001892/0.1459, allocations: 31.59 kB / 0.519 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003202/0.1462, allocations: 67.39 kB / 0.5191 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004463/0.1467, allocations: 139.8 kB / 0.5192 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006248/0.1473, allocations: 359 kB / 0.5195 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002701/0.1475, allocations: 88.78 kB / 0.5196 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002903/0.1478, allocations: 139.4 kB / 0.5198 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002623/0.1481, allocations: 143.2 kB / 0.5199 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.66e-05/0.1482, allocations: 32 kB / 0.5199 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.697e-05/0.1482, allocations: 36 kB / 0.52 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.1483, allocations: 79.73 kB / 0.52 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000213/0.1486, allocations: 127.4 kB / 0.5202 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005404/0.1491, allocations: 362.4 kB / 0.5205 GB, free: 2.672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1491, allocations: 0 / 0.5205 GB, free: 2.672 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1491, allocations: 0 / 0.5205 GB, free: 2.672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.1491, allocations: 0 / 0.5205 GB, free: 2.672 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.001647/0.1508, allocations: 0.6758 MB / 0.5212 GB, free: 1.953 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.1508, allocations: 8.031 kB / 0.5212 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.151, allocations: 79.3 kB / 0.5213 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.1511, allocations: 40.7 kB / 0.5213 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006514/0.1517, allocations: 277.5 kB / 0.5216 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.57e-05/0.1518, allocations: 21.03 kB / 0.5216 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.6e-05/0.1519, allocations: 40.38 kB / 0.5216 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006425/0.1525, allocations: 270 kB / 0.5219 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.1525, allocations: 0 / 0.5219 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.716e-05/0.1526, allocations: 12 kB / 0.5219 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.1526, allocations: 8 kB / 0.5219 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004688/0.153, allocations: 194.4 kB / 0.5221 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.1546, allocations: 0.7024 MB / 0.5228 GB, free: 244 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004789/0.1551, allocations: 182.8 kB / 0.5229 GB, free: 52 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002482/0.1553, allocations: 92.73 kB / 0.523 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.1553, allocations: 7.938 kB / 0.523 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004807/0.1558, allocations: 235.1 kB / 0.5233 GB, free: 15.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.134e-06/0.1558, allocations: 0 / 0.5233 GB, free: 15.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009638/0.1568, allocations: 373.4 kB / 0.5236 GB, free: 15.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/0.1569, allocations: 63.33 kB / 0.5237 GB, free: 15.26 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003048/0.1572, allocations: 237.1 kB / 0.5239 GB, free: 15.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.524e-05/0.1572, allocations: 33.7 kB / 0.5239 GB, free: 14.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.1574, allocations: 180.7 kB / 0.5241 GB, free: 14.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.1575, allocations: 103.2 kB / 0.5242 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.1576, allocations: 74.06 kB / 0.5243 GB, free: 14.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002188/0.1578, allocations: 334.8 kB / 0.5246 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.1581, allocations: 88.69 kB / 0.5247 GB, free: 14.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003638/0.1584, allocations: 226.4 kB / 0.5249 GB, free: 13.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006169/0.159, allocations: 348.7 kB / 0.5252 GB, free: 13.51 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.1591, allocations: 0 / 0.5252 GB, free: 13.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000771/0.1598, allocations: 372.9 kB / 0.5256 GB, free: 13.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.1598, allocations: 4 kB / 0.5256 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.1599, allocations: 4 kB / 0.5256 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/0.1599, allocations: 8.094 kB / 0.5256 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003318/0.1602, allocations: 84.23 kB / 0.5257 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.1602, allocations: 8 kB / 0.5257 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.1604, allocations: 39.77 kB / 0.5257 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.924e-05/0.1605, allocations: 19.98 kB / 0.5257 GB, free: 12.98 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,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,mean.y,$PRE.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.0002581/0.1608, allocations: 173.4 kB / 0.5259 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.38e-05/0.1608, allocations: 27.86 kB / 0.5259 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000724/0.1615, allocations: 319.5 kB / 0.5262 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.1615, allocations: 4 kB / 0.5262 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.1615, allocations: 4 kB / 0.5262 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1616, allocations: 144 / 0.5262 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/0.1627, allocations: 0.6612 MB / 0.5269 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.1627, allocations: 3.984 kB / 0.5269 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002594/0.1629, allocations: 47.91 kB / 0.5269 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.1629, allocations: 8 kB / 0.5269 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.519e-05/0.163, allocations: 11.98 kB / 0.527 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.163, allocations: 0 / 0.527 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.163, allocations: 0 / 0.527 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.1641, allocations: 0.5227 MB / 0.5275 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.508e-05/0.1641, allocations: 27.75 kB / 0.5275 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.503e-05/0.1642, allocations: 12.06 kB / 0.5275 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.1644, allocations: 19.98 kB / 0.5275 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.046e-05/0.1645, allocations: 27.89 kB / 0.5276 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.687e-05/0.1645, allocations: 11.98 kB / 0.5276 GB, free: 11.03 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002234/0.1647, allocations: 172.3 kB / 0.5277 GB, free: 10.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1647, allocations: 0 / 0.5277 GB, free: 10.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004305/0.1651, allocations: 67.89 kB / 0.5278 GB, free: 10.79 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.00144/0.1666, allocations: 1.067 MB / 0.5288 GB, free: 9.695 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006333/0.1672, allocations: 252.1 kB / 0.5291 GB, free: 9.449 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.1672, allocations: 0 / 0.5291 GB, free: 9.449 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002748/0.1675, allocations: 116.8 kB / 0.5292 GB, free: 9.336 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.1679, allocations: 36.61 kB / 0.5292 GB, free: 9.301 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004999/0.1729, allocations: 3.091 MB / 0.5322 GB, free: 6.023 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.1731, allocations: 178 kB / 0.5324 GB, free: 5.824 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001905/0.1733, allocations: 47.22 kB / 0.5325 GB, free: 5.777 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/0.1735, allocations: 111.4 kB / 0.5326 GB, free: 5.668 MB / 414.1 MB Notification: Performance of SimCode: time 1.232e-06/0.1735, allocations: 0 / 0.5326 GB, free: 5.668 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.273/0.4465, allocations: 6.183 MB / 0.5386 GB, free: 29.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.1, allocations: 4.812 kB / 0.5386 GB, free: 29.47 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/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: 15.213336693122983]