Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001435/0.001435, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.001709/0.001709, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.517/1.517, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.247/0.247, allocations: 46.91 MB / 357.1 MB, free: 10.33 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00216/0.00216, allocations: 71.89 kB / 0.4909 GB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1178, allocations: 65.99 MB / 0.5554 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004614/0.1225, allocations: 2.324 MB / 0.5576 GB, free: 3.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002406/0.1249, allocations: 0.9075 MB / 0.5585 GB, free: 2.605 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004361/0.1253, allocations: 11.94 kB / 0.5585 GB, free: 2.594 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002822/0.1256, allocations: 39.47 kB / 0.5586 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005451/0.1261, allocations: 63.39 kB / 0.5586 GB, free: 2.492 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007464/0.1269, allocations: 183.6 kB / 0.5588 GB, free: 2.312 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008114/0.1277, allocations: 386.9 kB / 0.5592 GB, free: 1.934 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003285/0.128, allocations: 104.2 kB / 0.5593 GB, free: 1.832 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004048/0.1284, allocations: 163.3 kB / 0.5594 GB, free: 1.672 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003347/0.1288, allocations: 159.2 kB / 0.5596 GB, free: 1.516 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.1289, allocations: 36 kB / 0.5596 GB, free: 1.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.129, allocations: 55.98 kB / 0.5597 GB, free: 1.426 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001234/0.1291, allocations: 91.62 kB / 0.5598 GB, free: 1.336 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000278/0.1294, allocations: 175 kB / 0.5599 GB, free: 1.164 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006003/0.13, allocations: 406.3 kB / 0.5603 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.13, allocations: 4 kB / 0.5603 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.13, allocations: 3.938 kB / 0.5603 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.21e-05/0.1301, allocations: 4 kB / 0.5603 GB, free: 0.7539 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.001616/0.1317, allocations: 0.6727 MB / 0.561 GB, free: 32 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.1317, allocations: 8.031 kB / 0.561 GB, free: 24 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001688/0.1319, allocations: 79.28 kB / 0.5611 GB, free: 15.94 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005519/0.1324, allocations: 76.66 kB / 0.5611 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006938/0.1331, allocations: 360.2 kB / 0.5615 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.458e-05/0.1332, allocations: 36.97 kB / 0.5615 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.739e-05/0.1333, allocations: 44.31 kB / 0.5616 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006652/0.1339, allocations: 286 kB / 0.5618 GB, free: 15.11 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.134, allocations: 0 / 0.5618 GB, free: 15.11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.168e-05/0.134, allocations: 16 kB / 0.5619 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.134, allocations: 4 kB / 0.5619 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005048/0.1345, allocations: 198.5 kB / 0.562 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.1362, allocations: 0.87 MB / 0.5629 GB, free: 13.97 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004937/0.1367, allocations: 189 kB / 0.5631 GB, free: 13.78 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.1369, allocations: 88.81 kB / 0.5632 GB, free: 13.69 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/0.137, allocations: 7.984 kB / 0.5632 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004875/0.1375, allocations: 219.2 kB / 0.5634 GB, free: 13.46 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 2.645e-06/0.1375, allocations: 0 / 0.5634 GB, free: 13.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009711/0.1384, allocations: 381.2 kB / 0.5637 GB, free: 13.08 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.1385, allocations: 55.41 kB / 0.5638 GB, free: 13.01 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003508/0.1388, allocations: 271 kB / 0.564 GB, free: 12.74 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.645e-05/0.1389, allocations: 33.7 kB / 0.5641 GB, free: 12.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.1391, allocations: 196.9 kB / 0.5643 GB, free: 12.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.1392, allocations: 99.22 kB / 0.5644 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.1393, allocations: 70.06 kB / 0.5644 GB, free: 12.33 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.1395, allocations: 350.7 kB / 0.5648 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.1397, allocations: 92.7 kB / 0.5649 GB, free: 11.89 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003586/0.1401, allocations: 234.2 kB / 0.5651 GB, free: 11.6 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00062/0.1407, allocations: 340.8 kB / 0.5654 GB, free: 11.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.1407, allocations: 0 / 0.5654 GB, free: 11.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008443/0.1416, allocations: 384.8 kB / 0.5658 GB, free: 10.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.1416, allocations: 4 kB / 0.5658 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.1416, allocations: 4 kB / 0.5658 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.1416, allocations: 8.469 kB / 0.5658 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003627/0.142, allocations: 83.83 kB / 0.5659 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/0.142, allocations: 4 kB / 0.5659 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.1423, allocations: 39.78 kB / 0.5659 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.88e-05/0.1423, allocations: 19.92 kB / 0.5659 GB, free: 10.66 MB / 430.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.0002884/0.1426, allocations: 170.7 kB / 0.5661 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.77e-05/0.1427, allocations: 31.8 kB / 0.5661 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000833/0.1435, allocations: 324.3 kB / 0.5664 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.1435, allocations: 4 kB / 0.5664 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.1435, allocations: 0 / 0.5664 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.1435, allocations: 3.984 kB / 0.5664 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.1448, allocations: 0.7324 MB / 0.5672 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1448, allocations: 0 / 0.5672 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003069/0.1451, allocations: 51.91 kB / 0.5672 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.1451, allocations: 0 / 0.5672 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.343e-05/0.1451, allocations: 15.98 kB / 0.5672 GB, free: 9.258 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.1451, allocations: 7.938 kB / 0.5672 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1451, allocations: 3.938 kB / 0.5672 GB, free: 9.246 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.1462, allocations: 0.5266 MB / 0.5677 GB, free: 8.703 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.1463, allocations: 108.8 kB / 0.5678 GB, free: 8.578 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.887e-05/0.1463, allocations: 8.062 kB / 0.5679 GB, free: 8.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002006/0.1466, allocations: 15.92 kB / 0.5679 GB, free: 8.555 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.291e-05/0.1466, allocations: 23.97 kB / 0.5679 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.571e-05/0.1467, allocations: 15.98 kB / 0.5679 GB, free: 8.516 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002406/0.1469, allocations: 190 kB / 0.5681 GB, free: 8.328 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1469, allocations: 4 kB / 0.5681 GB, free: 8.324 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000503/0.1474, allocations: 67.89 kB / 0.5682 GB, free: 8.258 MB / 430.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.001376/0.1488, allocations: 1.079 MB / 0.5692 GB, free: 7.152 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006475/0.1494, allocations: 248 kB / 0.5694 GB, free: 6.91 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1494, allocations: 0.9375 kB / 0.5694 GB, free: 6.91 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002821/0.1497, allocations: 116.4 kB / 0.5696 GB, free: 6.797 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000431/0.1502, allocations: 61.08 kB / 0.5696 GB, free: 6.734 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005012/0.1552, allocations: 3.242 MB / 0.5728 GB, free: 3.297 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005341/0.1557, allocations: 0.8037 MB / 0.5736 GB, free: 2.465 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.1559, allocations: 42.95 kB / 0.5736 GB, free: 2.422 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.1561, allocations: 119.4 kB / 0.5737 GB, free: 2.305 MB / 430.1 MB Notification: Performance of SimCode: time 1.262e-06/0.1561, allocations: 4 kB / 0.5737 GB, free: 2.301 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03552/0.1916, allocations: 6.054 MB / 0.5796 GB, free: 12.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.694/8.885, allocations: 112 / 0.5796 GB, free: 12.32 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 12.215000718832016]