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.001795/0.001795, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.002144/0.002144, allocations: 210.4 kB / 23.73 MB, free: 4.41 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.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.242/0.242, allocations: 44.93 MB / 358.8 MB, free: 6.051 MB / 286.1 MB " [Timeout remaining time 179] 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.002182/0.002182, allocations: 67.89 kB / 0.493 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3402, allocations: 65.47 MB / 0.557 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003719/0.3439, allocations: 2.178 MB / 0.5591 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.3456, allocations: 0.8541 MB / 0.5599 GB, free: 4.492 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.3457, allocations: 11.94 kB / 0.5599 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.3459, allocations: 35.53 kB / 0.56 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002403/0.3461, allocations: 75.31 kB / 0.56 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004286/0.3466, allocations: 179.7 kB / 0.5602 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004594/0.347, allocations: 386.9 kB / 0.5606 GB, free: 3.816 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.3472, allocations: 100.6 kB / 0.5607 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002918/0.3475, allocations: 155.4 kB / 0.5608 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002297/0.3478, allocations: 151.2 kB / 0.561 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.165e-05/0.3478, allocations: 36 kB / 0.561 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.3479, allocations: 51.98 kB / 0.5611 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.937e-05/0.348, allocations: 87.69 kB / 0.5611 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.3482, allocations: 135.2 kB / 0.5613 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004947/0.3487, allocations: 424.2 kB / 0.5617 GB, free: 2.695 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3487, allocations: 0 / 0.5617 GB, free: 2.695 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3487, allocations: 0 / 0.5617 GB, free: 2.695 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.3487, allocations: 0 / 0.5617 GB, free: 2.695 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.00138/0.3501, allocations: 0.7306 MB / 0.5624 GB, free: 1.918 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.3501, allocations: 8.031 kB / 0.5624 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.3502, allocations: 79.27 kB / 0.5625 GB, free: 1.824 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004683/0.3507, allocations: 84.61 kB / 0.5625 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000582/0.3513, allocations: 303 kB / 0.5628 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/0.3513, allocations: 24.97 kB / 0.5629 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.121e-05/0.3514, allocations: 36.38 kB / 0.5629 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005603/0.3519, allocations: 290 kB / 0.5632 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.352, allocations: 3.984 kB / 0.5632 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.352, allocations: 12 kB / 0.5632 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.352, allocations: 12 kB / 0.5632 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004679/0.3525, allocations: 202.4 kB / 0.5634 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001453/0.3539, allocations: 0.7535 MB / 0.5641 GB, free: 52 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004551/0.3544, allocations: 178.9 kB / 0.5643 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.3546, allocations: 88.81 kB / 0.5644 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.3546, allocations: 4 kB / 0.5644 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004505/0.3551, allocations: 227.7 kB / 0.5646 GB, free: 15.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.884e-06/0.3551, allocations: 0 / 0.5646 GB, free: 15.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008822/0.356, allocations: 377.3 kB / 0.565 GB, free: 15.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.356, allocations: 55.41 kB / 0.565 GB, free: 15.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003033/0.3563, allocations: 272.2 kB / 0.5653 GB, free: 14.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.468e-05/0.3564, allocations: 37.7 kB / 0.5653 GB, free: 14.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.3565, allocations: 196.9 kB / 0.5655 GB, free: 14.58 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.3566, allocations: 103.1 kB / 0.5656 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.3567, allocations: 70.06 kB / 0.5657 GB, free: 14.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.3569, allocations: 350.8 kB / 0.566 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.3571, allocations: 96.62 kB / 0.5661 GB, free: 13.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003334/0.3575, allocations: 222.6 kB / 0.5663 GB, free: 13.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005867/0.3581, allocations: 348.7 kB / 0.5666 GB, free: 13.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3581, allocations: 0 / 0.5666 GB, free: 13.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007287/0.3588, allocations: 389 kB / 0.567 GB, free: 12.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.3588, allocations: 4 kB / 0.567 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.3588, allocations: 8 kB / 0.567 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.3589, allocations: 4 kB / 0.567 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.3592, allocations: 71.91 kB / 0.5671 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.3592, allocations: 15.92 kB / 0.5671 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.3594, allocations: 31.84 kB / 0.5671 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/0.3594, allocations: 20.11 kB / 0.5672 GB, free: 12.74 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.0002106/0.3596, allocations: 174.7 kB / 0.5673 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.207e-05/0.3597, allocations: 31.8 kB / 0.5674 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007217/0.3604, allocations: 320.3 kB / 0.5677 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.3604, allocations: 4 kB / 0.5677 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3604, allocations: 4 kB / 0.5677 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.3604, allocations: 3.984 kB / 0.5677 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.3614, allocations: 0.669 MB / 0.5683 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3614, allocations: 0 / 0.5683 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.3617, allocations: 55.95 kB / 0.5684 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.135e-06/0.3617, allocations: 4 kB / 0.5684 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.3617, allocations: 7.938 kB / 0.5684 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.3617, allocations: 7.938 kB / 0.5684 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.3617, allocations: 4 kB / 0.5684 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009523/0.3627, allocations: 0.5157 MB / 0.5689 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.344e-05/0.3627, allocations: 43.78 kB / 0.5689 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.475e-05/0.3628, allocations: 8 kB / 0.569 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.363, allocations: 15.92 kB / 0.569 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.213e-05/0.3631, allocations: 23.95 kB / 0.569 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.3631, allocations: 12 kB / 0.569 GB, free: 10.76 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002071/0.3633, allocations: 191.1 kB / 0.5692 GB, free: 10.58 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3633, allocations: 0 / 0.5692 GB, free: 10.58 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004134/0.3637, allocations: 83.77 kB / 0.5693 GB, free: 10.5 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.001297/0.365, allocations: 1.071 MB / 0.5703 GB, free: 9.398 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005819/0.3656, allocations: 251.7 kB / 0.5705 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3656, allocations: 0 / 0.5705 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.3659, allocations: 128.5 kB / 0.5707 GB, free: 9.027 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.3662, allocations: 53.75 kB / 0.5707 GB, free: 8.973 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004529/0.3708, allocations: 3.237 MB / 0.5739 GB, free: 5.539 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/0.371, allocations: 195.3 kB / 0.5741 GB, free: 5.328 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001744/0.3712, allocations: 47.22 kB / 0.5741 GB, free: 5.281 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/0.3714, allocations: 123.4 kB / 0.5742 GB, free: 5.16 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3714, allocations: 0 / 0.5742 GB, free: 5.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03645/0.4078, allocations: 6.72 MB / 0.5808 GB, free: 14.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.92, allocations: 7.125 kB / 0.5808 GB, free: 14.6 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.137481771875173]