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.001709/0.001709, allocations: 114.4 kB / 19.69 MB, free: 2.188 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.002021/0.002021, allocations: 215.4 kB / 23 MB, free: 5.004 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.504/1.504, allocations: 207.6 MB / 233.8 MB, free: 10 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.223/0.223, allocations: 44.24 MB / 330.3 MB, free: 9.52 MB / 270.1 MB " [Timeout remaining time 180] 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.002276/0.002276, allocations: 71.89 kB / 467.5 MB, free: 4.508 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1214, allocations: 61.03 MB / 0.5161 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004426/0.1259, allocations: 2.259 MB / 0.5183 GB, free: 5.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.1276, allocations: 0.8306 MB / 0.5191 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002617/0.1278, allocations: 15.81 kB / 0.5192 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001885/0.128, allocations: 35.59 kB / 0.5192 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003548/0.1284, allocations: 55.45 kB / 0.5192 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004432/0.1288, allocations: 139.7 kB / 0.5194 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005901/0.1294, allocations: 363 kB / 0.5197 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003022/0.1297, allocations: 88.78 kB / 0.5198 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003165/0.13, allocations: 143.4 kB / 0.52 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003222/0.1304, allocations: 147.3 kB / 0.5201 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.1305, allocations: 36 kB / 0.5201 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.825e-05/0.1305, allocations: 32 kB / 0.5202 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.1306, allocations: 87.62 kB / 0.5202 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.1309, allocations: 159.2 kB / 0.5204 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005423/0.1314, allocations: 362.5 kB / 0.5207 GB, free: 2.594 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.1314, allocations: 4 kB / 0.5207 GB, free: 2.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1314, allocations: 0 / 0.5207 GB, free: 2.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.058e-05/0.1314, allocations: 3.984 kB / 0.5207 GB, free: 2.586 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.001575/0.133, allocations: 0.6641 MB / 0.5214 GB, free: 1.879 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.133, allocations: 8.031 kB / 0.5214 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001326/0.1332, allocations: 75.33 kB / 0.5215 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.738e-05/0.1333, allocations: 40.7 kB / 0.5215 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005729/0.1339, allocations: 277.5 kB / 0.5218 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.1339, allocations: 25.03 kB / 0.5218 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.909e-05/0.1339, allocations: 28.38 kB / 0.5218 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005492/0.1345, allocations: 281.9 kB / 0.5221 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.1345, allocations: 4 kB / 0.5221 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.309e-05/0.1345, allocations: 15.98 kB / 0.5221 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.1346, allocations: 4 kB / 0.5221 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004319/0.135, allocations: 186.5 kB / 0.5223 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.1365, allocations: 0.7687 MB / 0.523 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004897/0.137, allocations: 194.8 kB / 0.5232 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.1372, allocations: 88.81 kB / 0.5233 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.806e-05/0.1372, allocations: 11.94 kB / 0.5233 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000463/0.1377, allocations: 235.1 kB / 0.5236 GB, free: 15.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.505e-06/0.1377, allocations: 0 / 0.5236 GB, free: 15.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008807/0.1386, allocations: 361.4 kB / 0.5239 GB, free: 15.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.1386, allocations: 63.39 kB / 0.524 GB, free: 15.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002667/0.1389, allocations: 233.1 kB / 0.5242 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.1389, allocations: 41.62 kB / 0.5242 GB, free: 14.84 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.1391, allocations: 180.7 kB / 0.5244 GB, free: 14.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.1392, allocations: 103.2 kB / 0.5245 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.1393, allocations: 74 kB / 0.5246 GB, free: 14.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.1395, allocations: 338.8 kB / 0.5249 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000217/0.1397, allocations: 88.69 kB / 0.525 GB, free: 14.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003161/0.14, allocations: 230.3 kB / 0.5252 GB, free: 13.76 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005463/0.1405, allocations: 348.8 kB / 0.5255 GB, free: 13.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.1405, allocations: 3.938 kB / 0.5255 GB, free: 13.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006786/0.1412, allocations: 361.2 kB / 0.5259 GB, free: 13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.1412, allocations: 8 kB / 0.5259 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.1412, allocations: 7.938 kB / 0.5259 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.448e-05/0.1413, allocations: 11.98 kB / 0.5259 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002901/0.1416, allocations: 71.91 kB / 0.526 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.1416, allocations: 11.92 kB / 0.526 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.1418, allocations: 31.78 kB / 0.526 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.034e-05/0.1418, allocations: 20.16 kB / 0.526 GB, free: 12.84 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.0002024/0.142, allocations: 177.6 kB / 0.5262 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.441e-05/0.142, allocations: 23.86 kB / 0.5262 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006753/0.1427, allocations: 319.5 kB / 0.5265 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.1427, allocations: 8 kB / 0.5265 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1427, allocations: 0 / 0.5265 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1427, allocations: 0 / 0.5265 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.1438, allocations: 0.6924 MB / 0.5272 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1438, allocations: 4 kB / 0.5272 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.144, allocations: 43.97 kB / 0.5273 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.144, allocations: 4.094 kB / 0.5273 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.807e-05/0.1441, allocations: 19.92 kB / 0.5273 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.1441, allocations: 0 / 0.5273 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1441, allocations: 0 / 0.5273 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008885/0.1449, allocations: 0.5266 MB / 0.5278 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.145, allocations: 27.75 kB / 0.5278 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.164e-05/0.145, allocations: 20.05 kB / 0.5278 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.1452, allocations: 8 kB / 0.5278 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.411e-05/0.1453, allocations: 23.95 kB / 0.5279 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.1453, allocations: 11.98 kB / 0.5279 GB, free: 10.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000169/0.1455, allocations: 176.4 kB / 0.528 GB, free: 10.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1455, allocations: 0 / 0.528 GB, free: 10.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.1458, allocations: 63.89 kB / 0.5281 GB, free: 10.63 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.001248/0.1471, allocations: 1.064 MB / 0.5291 GB, free: 9.535 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005412/0.1476, allocations: 252.2 kB / 0.5294 GB, free: 9.289 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.1476, allocations: 7.938 kB / 0.5294 GB, free: 9.281 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000242/0.1479, allocations: 119.8 kB / 0.5295 GB, free: 9.164 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003418/0.1482, allocations: 32.42 kB / 0.5295 GB, free: 9.133 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00424/0.1524, allocations: 3.088 MB / 0.5326 GB, free: 5.855 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004428/0.1529, allocations: 0.7881 MB / 0.5333 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000143/0.153, allocations: 42.95 kB / 0.5334 GB, free: 5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001785/0.1532, allocations: 107.4 kB / 0.5335 GB, free: 4.895 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1532, allocations: 4 kB / 0.5335 GB, free: 4.891 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2251/0.3783, allocations: 5.846 MB / 0.5392 GB, free: 28.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.74, allocations: 1.438 kB / 0.5392 GB, free: 28.35 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: 14.735198692884296]