Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.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.001542/0.001542, allocations: 119 kB / 18.5 MB, free: 4.582 MB / 14.72 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.001735/0.001735, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 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.527/1.527, allocations: 225.6 MB / 249.8 MB, free: 3.734 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2365/0.2365, allocations: 44.91 MB / 349.6 MB, free: 1.77 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 67.14 kB / 491.8 MB, free: 30.21 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1282, allocations: 64.25 MB / 0.543 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003801/0.132, allocations: 2.255 MB / 0.5452 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.1335, allocations: 0.7755 MB / 0.546 GB, free: 1.094 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.1337, allocations: 7.938 kB / 0.546 GB, free: 1.086 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.1338, allocations: 35.59 kB / 0.546 GB, free: 1.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002434/0.1341, allocations: 59.39 kB / 0.5461 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003445/0.1344, allocations: 155.7 kB / 0.5462 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004329/0.1349, allocations: 367 kB / 0.5465 GB, free: 492 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002294/0.1351, allocations: 96.17 kB / 0.5466 GB, free: 392 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001969/0.1353, allocations: 139.5 kB / 0.5468 GB, free: 252 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.1355, allocations: 167.2 kB / 0.5469 GB, free: 84 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.147e-05/0.1356, allocations: 32 kB / 0.547 GB, free: 52 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.937e-05/0.1356, allocations: 36 kB / 0.547 GB, free: 16 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.1357, allocations: 83.88 kB / 0.5471 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.1359, allocations: 167.1 kB / 0.5472 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004477/0.1363, allocations: 382.3 kB / 0.5476 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1363, allocations: 0 / 0.5476 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1363, allocations: 0 / 0.5476 GB, free: 15.39 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.1363, allocations: 0 / 0.5476 GB, free: 15.39 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001261/0.1376, allocations: 0.6341 MB / 0.5482 GB, free: 14.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.1377, allocations: 12.03 kB / 0.5482 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.1378, allocations: 71.28 kB / 0.5483 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.864e-05/0.1378, allocations: 44.7 kB / 0.5483 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005929/0.1384, allocations: 343.3 kB / 0.5487 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.073e-05/0.1385, allocations: 33.02 kB / 0.5487 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.248e-05/0.1385, allocations: 36.38 kB / 0.5487 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000573/0.1391, allocations: 286 kB / 0.549 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.1391, allocations: 4 kB / 0.549 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.1392, allocations: 15.98 kB / 0.549 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.1392, allocations: 4 kB / 0.549 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004284/0.1396, allocations: 198.5 kB / 0.5492 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.1411, allocations: 0.8389 MB / 0.55 GB, free: 12.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004182/0.1415, allocations: 190.8 kB / 0.5502 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.1417, allocations: 88.81 kB / 0.5503 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.1418, allocations: 7.984 kB / 0.5503 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004139/0.1422, allocations: 227.1 kB / 0.5505 GB, free: 12.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.744e-06/0.1422, allocations: 0 / 0.5505 GB, free: 12.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007954/0.143, allocations: 361.3 kB / 0.5509 GB, free: 11.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.143, allocations: 63.41 kB / 0.5509 GB, free: 11.78 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.1433, allocations: 236.9 kB / 0.5512 GB, free: 11.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.007e-05/0.1433, allocations: 33.7 kB / 0.5512 GB, free: 11.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.1435, allocations: 184.9 kB / 0.5514 GB, free: 11.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.141e-05/0.1435, allocations: 99.17 kB / 0.5515 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.1437, allocations: 78.05 kB / 0.5515 GB, free: 11.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.1438, allocations: 342.8 kB / 0.5519 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.144, allocations: 88.7 kB / 0.552 GB, free: 10.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002988/0.1443, allocations: 228 kB / 0.5522 GB, free: 10.42 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005416/0.1449, allocations: 344.7 kB / 0.5525 GB, free: 10.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.1449, allocations: 8 kB / 0.5525 GB, free: 10.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006459/0.1455, allocations: 372.9 kB / 0.5529 GB, free: 9.645 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.1455, allocations: 8 kB / 0.5529 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.1455, allocations: 4 kB / 0.5529 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.1456, allocations: 8 kB / 0.5529 GB, free: 9.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002875/0.1459, allocations: 68.36 kB / 0.5529 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.604e-05/0.1459, allocations: 19.92 kB / 0.553 GB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000176/0.146, allocations: 39.77 kB / 0.553 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.1461, allocations: 23.94 kB / 0.553 GB, free: 9.477 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_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last) * 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.0001783/0.1463, allocations: 162.8 kB / 0.5532 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.181e-05/0.1463, allocations: 23.86 kB / 0.5532 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006542/0.147, allocations: 328.2 kB / 0.5535 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.147, allocations: 7.984 kB / 0.5535 GB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.147, allocations: 0 / 0.5535 GB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.147, allocations: 0 / 0.5535 GB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.148, allocations: 0.7168 MB / 0.5542 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.148, allocations: 4 kB / 0.5542 GB, free: 8.172 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002467/0.1482, allocations: 51.91 kB / 0.5543 GB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.1482, allocations: 0 / 0.5543 GB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.1483, allocations: 11.98 kB / 0.5543 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.1483, allocations: 3.938 kB / 0.5543 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1483, allocations: 0 / 0.5543 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008805/0.1492, allocations: 0.5229 MB / 0.5548 GB, free: 7.566 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.782e-05/0.1492, allocations: 104.9 kB / 0.5549 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.878e-05/0.1493, allocations: 12.05 kB / 0.5549 GB, free: 7.434 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.1495, allocations: 15.92 kB / 0.5549 GB, free: 7.418 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.647e-05/0.1495, allocations: 23.97 kB / 0.555 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/0.1496, allocations: 15.98 kB / 0.555 GB, free: 7.379 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001731/0.1497, allocations: 160.5 kB / 0.5551 GB, free: 7.219 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1497, allocations: 0 / 0.5551 GB, free: 7.219 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003938/0.1501, allocations: 87.86 kB / 0.5552 GB, free: 7.133 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * 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.001264/0.1514, allocations: 1.072 MB / 0.5563 GB, free: 6.039 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005639/0.152, allocations: 248 kB / 0.5565 GB, free: 5.797 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.152, allocations: 0 / 0.5565 GB, free: 5.797 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.1522, allocations: 125.2 kB / 0.5566 GB, free: 5.676 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.1526, allocations: 55.33 kB / 0.5567 GB, free: 5.625 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004154/0.1568, allocations: 3.084 MB / 0.5597 GB, free: 2.344 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004519/0.1572, allocations: 0.7881 MB / 0.5604 GB, free: 1.527 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001742/0.1574, allocations: 39.06 kB / 0.5605 GB, free: 1.488 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.1576, allocations: 115.3 kB / 0.5606 GB, free: 1.379 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1576, allocations: 4 kB / 0.5606 GB, free: 1.375 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.1887, allocations: 5.583 MB / 0.566 GB, free: 11.86 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.193/8.382, allocations: 3.875 kB / 0.566 GB, free: 11.86 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 11.546987677924335]