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.001521/0.001521, allocations: 115.8 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.001441/0.001441, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 8 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.2395/0.2395, allocations: 46.94 MB / 360.9 MB, free: 4.246 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.002011/0.002011, allocations: 71.89 kB / 0.4962 GB, free: 7.879 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3459, allocations: 66.03 MB / 0.5606 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003706/0.3496, allocations: 2.334 MB / 0.5629 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.3513, allocations: 0.9163 MB / 0.5638 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.3514, allocations: 7.938 kB / 0.5638 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.3516, allocations: 39.53 kB / 0.5639 GB, free: 1.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/0.3518, allocations: 71.38 kB / 0.5639 GB, free: 1.066 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004287/0.3522, allocations: 183.6 kB / 0.5641 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004787/0.3527, allocations: 394.9 kB / 0.5645 GB, free: 0.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/0.3529, allocations: 96.56 kB / 0.5646 GB, free: 412 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002646/0.3532, allocations: 159.4 kB / 0.5647 GB, free: 252 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002464/0.3534, allocations: 167.1 kB / 0.5649 GB, free: 84 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.067e-05/0.3535, allocations: 36 kB / 0.5649 GB, free: 48 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.3536, allocations: 48 kB / 0.565 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.3537, allocations: 95.8 kB / 0.5651 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.3539, allocations: 175 kB / 0.5652 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005067/0.3544, allocations: 408.2 kB / 0.5656 GB, free: 15.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3544, allocations: 0 / 0.5656 GB, free: 15.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3544, allocations: 0 / 0.5656 GB, free: 15.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.3544, allocations: 4 kB / 0.5656 GB, free: 15.33 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.001356/0.3558, allocations: 0.7267 MB / 0.5663 GB, free: 14.56 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.3558, allocations: 12.03 kB / 0.5663 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001193/0.356, allocations: 75.25 kB / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004646/0.3564, allocations: 84.61 kB / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005878/0.357, allocations: 299 kB / 0.5668 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.357, allocations: 32.97 kB / 0.5668 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.926e-05/0.3571, allocations: 36.38 kB / 0.5668 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005621/0.3577, allocations: 286 kB / 0.5671 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.3577, allocations: 0 / 0.5671 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.733e-05/0.3577, allocations: 20 kB / 0.5671 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.3577, allocations: 7.938 kB / 0.5671 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004575/0.3582, allocations: 202.4 kB / 0.5673 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.3597, allocations: 0.8275 MB / 0.5681 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004329/0.3601, allocations: 182.8 kB / 0.5683 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002126/0.3603, allocations: 96.75 kB / 0.5684 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.3604, allocations: 3.984 kB / 0.5684 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004447/0.3608, allocations: 235.6 kB / 0.5686 GB, free: 12.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.613e-06/0.3608, allocations: 0 / 0.5686 GB, free: 12.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008181/0.3616, allocations: 369.3 kB / 0.569 GB, free: 11.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.3617, allocations: 55.41 kB / 0.569 GB, free: 11.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002822/0.362, allocations: 268.2 kB / 0.5693 GB, free: 11.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.362, allocations: 37.7 kB / 0.5693 GB, free: 11.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.3621, allocations: 196.9 kB / 0.5695 GB, free: 11.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.698e-05/0.3622, allocations: 103.2 kB / 0.5696 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.3623, allocations: 70.06 kB / 0.5697 GB, free: 10.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.3625, allocations: 354.7 kB / 0.57 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.3627, allocations: 84.7 kB / 0.5701 GB, free: 10.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003153/0.363, allocations: 226.5 kB / 0.5703 GB, free: 10.24 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005607/0.3636, allocations: 348.8 kB / 0.5707 GB, free: 9.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3636, allocations: 0 / 0.5707 GB, free: 9.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006979/0.3643, allocations: 389.1 kB / 0.571 GB, free: 9.453 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.3643, allocations: 10.66 kB / 0.571 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.3643, allocations: 4 kB / 0.571 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.3644, allocations: 8 kB / 0.571 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003078/0.3647, allocations: 75.89 kB / 0.5711 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.3647, allocations: 7.938 kB / 0.5711 GB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.3649, allocations: 27.84 kB / 0.5712 GB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.3649, allocations: 27.92 kB / 0.5712 GB, free: 9.297 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.000191/0.3651, allocations: 165.8 kB / 0.5713 GB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/0.3651, allocations: 39.73 kB / 0.5714 GB, free: 9.086 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006746/0.3658, allocations: 316.3 kB / 0.5717 GB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.3658, allocations: 8 kB / 0.5717 GB, free: 8.758 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.3658, allocations: 0 / 0.5717 GB, free: 8.758 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.3658, allocations: 3.984 kB / 0.5717 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.3669, allocations: 0.7041 MB / 0.5724 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3669, allocations: 0 / 0.5724 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002614/0.3671, allocations: 43.97 kB / 0.5724 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3671, allocations: 0 / 0.5724 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.3671, allocations: 15.98 kB / 0.5724 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.3672, allocations: 7.938 kB / 0.5724 GB, free: 7.934 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3672, allocations: 7.938 kB / 0.5724 GB, free: 7.926 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000904/0.3681, allocations: 0.5156 MB / 0.573 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.375e-05/0.3681, allocations: 27.81 kB / 0.573 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.295e-05/0.3682, allocations: 12 kB / 0.573 GB, free: 7.355 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001778/0.3683, allocations: 23.86 kB / 0.573 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.772e-05/0.3684, allocations: 23.95 kB / 0.573 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.987e-05/0.3684, allocations: 19.98 kB / 0.5731 GB, free: 7.289 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001864/0.3686, allocations: 183.1 kB / 0.5732 GB, free: 7.113 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3686, allocations: 0 / 0.5732 GB, free: 7.113 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003726/0.369, allocations: 79.78 kB / 0.5733 GB, free: 7.035 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.001321/0.3703, allocations: 1.083 MB / 0.5744 GB, free: 5.926 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005525/0.3709, allocations: 248.5 kB / 0.5746 GB, free: 5.684 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3709, allocations: 0 / 0.5746 GB, free: 5.684 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002537/0.3711, allocations: 124 kB / 0.5747 GB, free: 5.562 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000466/0.3716, allocations: 53.23 kB / 0.5748 GB, free: 5.508 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004305/0.3759, allocations: 3.245 MB / 0.5779 GB, free: 2.062 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00045/0.3764, allocations: 0.7959 MB / 0.5787 GB, free: 1.238 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000147/0.3765, allocations: 47.22 kB / 0.5788 GB, free: 1.191 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.3767, allocations: 127.4 kB / 0.5789 GB, free: 1.066 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3767, allocations: 0 / 0.5789 GB, free: 1.066 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03401/0.4107, allocations: 6.32 MB / 0.5851 GB, free: 10.88 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.99, allocations: 7.938 kB / 0.5851 GB, free: 10.88 MB / 430.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_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.csv","/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] "Error: Could not read variable Time in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable Time from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.x in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.065646511997329]