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.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.00136/0.00136, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001844/0.001844, allocations: 212.4 kB / 23.74 MB, free: 4.672 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.505/1.505, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.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.2312/0.2312, allocations: 44.91 MB / 358.8 MB, free: 6.297 MB / 286.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.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_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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.002038/0.002038, allocations: 68.09 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3316, allocations: 65.48 MB / 0.557 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003865/0.3354, allocations: 2.326 MB / 0.5593 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.3371, allocations: 0.9124 MB / 0.5602 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.3373, allocations: 7.938 kB / 0.5602 GB, free: 4.516 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.3374, allocations: 47.47 kB / 0.5602 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002317/0.3377, allocations: 67.38 kB / 0.5603 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004151/0.3381, allocations: 187.6 kB / 0.5605 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004445/0.3385, allocations: 386.9 kB / 0.5609 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.3387, allocations: 96.58 kB / 0.5609 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.339, allocations: 159.3 kB / 0.5611 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002342/0.3392, allocations: 167.2 kB / 0.5613 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.247e-05/0.3393, allocations: 36 kB / 0.5613 GB, free: 3.387 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.767e-05/0.3394, allocations: 48 kB / 0.5613 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.666e-05/0.3395, allocations: 91.62 kB / 0.5614 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.3396, allocations: 175.1 kB / 0.5616 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004678/0.3401, allocations: 412.3 kB / 0.562 GB, free: 2.676 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3401, allocations: 0 / 0.562 GB, free: 2.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3401, allocations: 0 / 0.562 GB, free: 2.676 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.3401, allocations: 4 kB / 0.562 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.00129/0.3414, allocations: 0.7305 MB / 0.5627 GB, free: 1.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.3414, allocations: 12.03 kB / 0.5627 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.3416, allocations: 75.27 kB / 0.5628 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000449/0.342, allocations: 80.61 kB / 0.5629 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005705/0.3426, allocations: 307 kB / 0.5632 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.3426, allocations: 28.97 kB / 0.5632 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.047e-05/0.3427, allocations: 36.38 kB / 0.5632 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000546/0.3432, allocations: 290 kB / 0.5635 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.3432, allocations: 0 / 0.5635 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.3433, allocations: 12 kB / 0.5635 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.3433, allocations: 4 kB / 0.5635 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004553/0.3437, allocations: 206.5 kB / 0.5637 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001455/0.3452, allocations: 0.8236 MB / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004373/0.3456, allocations: 194.8 kB / 0.5647 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.3458, allocations: 88.81 kB / 0.5648 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.3458, allocations: 0 / 0.5648 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004392/0.3463, allocations: 235.7 kB / 0.565 GB, free: 15.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.124e-06/0.3463, allocations: 0 / 0.565 GB, free: 15.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008425/0.3471, allocations: 373.3 kB / 0.5654 GB, free: 15.06 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.3472, allocations: 59.41 kB / 0.5654 GB, free: 14.99 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002804/0.3475, allocations: 268.1 kB / 0.5657 GB, free: 14.72 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.886e-05/0.3475, allocations: 37.7 kB / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.3476, allocations: 192.9 kB / 0.5659 GB, free: 14.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.234e-05/0.3477, allocations: 103.1 kB / 0.566 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.3478, allocations: 74.06 kB / 0.5661 GB, free: 14.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.348, allocations: 350.8 kB / 0.5664 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.3482, allocations: 92.69 kB / 0.5665 GB, free: 13.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.3485, allocations: 226.5 kB / 0.5667 GB, free: 13.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005408/0.3491, allocations: 340.8 kB / 0.567 GB, free: 13.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3491, allocations: 3.938 kB / 0.567 GB, free: 13.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006717/0.3497, allocations: 373 kB / 0.5674 GB, free: 12.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.3498, allocations: 11.98 kB / 0.5674 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3498, allocations: 4.469 kB / 0.5674 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.3498, allocations: 15.98 kB / 0.5674 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003131/0.3501, allocations: 71.84 kB / 0.5675 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.3501, allocations: 7.984 kB / 0.5675 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.3503, allocations: 31.84 kB / 0.5675 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.3503, allocations: 27.92 kB / 0.5676 GB, free: 12.64 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_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.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.0001827/0.3505, allocations: 162.7 kB / 0.5677 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.844e-05/0.3506, allocations: 31.81 kB / 0.5677 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006795/0.3512, allocations: 328.3 kB / 0.5681 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.3512, allocations: 4 kB / 0.5681 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3513, allocations: 0 / 0.5681 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.3513, allocations: 3.984 kB / 0.5681 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.3523, allocations: 0.7041 MB / 0.5687 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3523, allocations: 0 / 0.5687 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002507/0.3525, allocations: 52 kB / 0.5688 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3525, allocations: 7.875 kB / 0.5688 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.3525, allocations: 11.98 kB / 0.5688 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3525, allocations: 3.938 kB / 0.5688 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3526, allocations: 4 kB / 0.5688 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000896/0.3534, allocations: 0.5273 MB / 0.5693 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/0.3535, allocations: 27.75 kB / 0.5694 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.307e-05/0.3535, allocations: 12.06 kB / 0.5694 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.3537, allocations: 15.92 kB / 0.5694 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.941e-05/0.3538, allocations: 23.95 kB / 0.5694 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.3538, allocations: 19.98 kB / 0.5694 GB, free: 10.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001912/0.354, allocations: 191.1 kB / 0.5696 GB, free: 10.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.354, allocations: 0 / 0.5696 GB, free: 10.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000372/0.3544, allocations: 75.78 kB / 0.5697 GB, free: 10.37 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_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.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.00145/0.3558, allocations: 1.079 MB / 0.5707 GB, free: 9.262 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006457/0.3565, allocations: 244.4 kB / 0.571 GB, free: 9.023 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3565, allocations: 0 / 0.571 GB, free: 9.023 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002466/0.3567, allocations: 124.5 kB / 0.5711 GB, free: 8.902 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.3571, allocations: 44.83 kB / 0.5711 GB, free: 8.855 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004218/0.3613, allocations: 3.245 MB / 0.5743 GB, free: 5.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004542/0.3618, allocations: 0.7919 MB / 0.5751 GB, free: 4.594 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001477/0.3619, allocations: 42.95 kB / 0.5751 GB, free: 4.551 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.3621, allocations: 127.7 kB / 0.5752 GB, free: 4.426 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3621, allocations: 3.938 kB / 0.5752 GB, free: 4.422 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04444/0.4066, allocations: 6.343 MB / 0.5814 GB, free: 14.21 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.17, allocations: 3.75 kB / 0.5814 GB, free: 14.21 MB / 430.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219736 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mean.x in file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.y in file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.y from file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.341097281998373]