Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001118/0.001118, allocations: 80.48 kB / 19.92 MB, free: 4.633 MB / 18.57 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.0009528/0.0009528, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9127/0.9127, allocations: 158.6 MB / 185 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1457/0.1457, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 406.8 MB, free: 2.254 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.726e-05/2.886e-05, allocations: 6.219 kB / 406.8 MB, free: 2.246 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002601/0.00263, allocations: 2.126 MB / 409 MB, free: 116 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.003862, allocations: 0.7682 MB / 409.7 MB, free: 15.34 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.004013, allocations: 11.88 kB / 409.7 MB, free: 15.32 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.004136, allocations: 31.59 kB / 409.8 MB, free: 15.29 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.004335, allocations: 67.39 kB / 409.8 MB, free: 15.23 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.004642, allocations: 151.6 kB / 410 MB, free: 15.08 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003096/0.004951, allocations: 358.9 kB / 410.3 MB, free: 14.73 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.005124, allocations: 84.84 kB / 410.4 MB, free: 14.65 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002264/0.00535, allocations: 203.6 kB / 410.6 MB, free: 14.45 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001473/0.005497, allocations: 111.6 kB / 410.7 MB, free: 14.34 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.085e-05/0.005538, allocations: 35.94 kB / 410.8 MB, free: 14.3 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.769e-05/0.005566, allocations: 36 kB / 410.8 MB, free: 14.27 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 6.116e-05/0.005627, allocations: 87.66 kB / 410.9 MB, free: 14.18 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 8.133e-05/0.005708, allocations: 99.73 kB / 411 MB, free: 14.09 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002998/0.006008, allocations: 374.7 kB / 411.3 MB, free: 13.72 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.624e-06/0.006011, allocations: 4 kB / 411.3 MB, free: 13.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.006012, allocations: 0 / 411.3 MB, free: 13.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.006018, allocations: 0 / 411.3 MB, free: 13.71 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008586/0.006876, allocations: 0.6756 MB / 412 MB, free: 12.99 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.006922, allocations: 8.031 kB / 412 MB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.537e-05/0.007008, allocations: 75.28 kB / 412.1 MB, free: 12.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.197e-05/0.00707, allocations: 40.7 kB / 412.1 MB, free: 12.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.007428, allocations: 277.2 kB / 412.4 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.345e-05/0.007462, allocations: 25.03 kB / 412.4 MB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.439e-05/0.007506, allocations: 36.33 kB / 412.5 MB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003777/0.007884, allocations: 278.5 kB / 412.7 MB, free: 12.22 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.007898, allocations: 4.188 kB / 412.7 MB, free: 12.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.007919, allocations: 15.92 kB / 412.8 MB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.007927, allocations: 8 kB / 412.8 MB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002507/0.008177, allocations: 186.5 kB / 413 MB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008726/0.00905, allocations: 0.6985 MB / 413.6 MB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.009329, allocations: 186.8 kB / 413.8 MB, free: 11.08 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.009443, allocations: 88.81 kB / 413.9 MB, free: 10.99 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.009463, allocations: 3.938 kB / 413.9 MB, free: 10.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002661/0.00973, allocations: 239.1 kB / 414.2 MB, free: 10.74 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.763e-06/0.009731, allocations: 0 / 414.2 MB, free: 10.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.000518/0.01025, allocations: 377.2 kB / 414.5 MB, free: 10.37 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.01029, allocations: 63.41 kB / 414.6 MB, free: 10.29 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.01045, allocations: 229.9 kB / 414.8 MB, free: 10.06 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.01048, allocations: 37.7 kB / 414.8 MB, free: 10.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.138e-05/0.01056, allocations: 188.6 kB / 415 MB, free: 9.828 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.379e-05/0.01061, allocations: 91.25 kB / 415.1 MB, free: 9.738 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.566e-05/0.01069, allocations: 74.05 kB / 415.2 MB, free: 9.656 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.872e-05/0.01079, allocations: 334.8 kB / 415.5 MB, free: 9.32 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.01091, allocations: 88.7 kB / 415.6 MB, free: 9.234 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.01108, allocations: 230.4 kB / 415.8 MB, free: 8.949 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.0114, allocations: 348.8 kB / 416.2 MB, free: 8.547 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.0114, allocations: 0 / 416.2 MB, free: 8.547 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004006/0.0118, allocations: 376.8 kB / 416.5 MB, free: 8.172 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.01181, allocations: 4 kB / 416.5 MB, free: 8.168 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.01182, allocations: 8 kB / 416.6 MB, free: 8.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.01184, allocations: 4 kB / 416.6 MB, free: 8.156 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.012, allocations: 79.83 kB / 416.6 MB, free: 8.078 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.01201, allocations: 8.469 kB / 416.6 MB, free: 8.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.318e-05/0.01211, allocations: 39.77 kB / 416.7 MB, free: 8.031 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.01212, allocations: 16 kB / 416.7 MB, free: 8.016 MB / 394.7 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,$PRE.rectifiedMean.mean.y,mean.y,$PRE.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.y) * 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.0001251/0.01225, allocations: 174.2 kB / 416.9 MB, free: 7.836 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.01228, allocations: 35.75 kB / 416.9 MB, free: 7.801 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003977/0.01268, allocations: 319.5 kB / 417.2 MB, free: 7.484 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.01268, allocations: 4 kB / 417.2 MB, free: 7.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.01269, allocations: 0 / 417.2 MB, free: 7.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.01269, allocations: 0 / 417.2 MB, free: 7.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005859/0.01328, allocations: 0.6573 MB / 417.9 MB, free: 6.773 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.01328, allocations: 4 kB / 417.9 MB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.01341, allocations: 43.91 kB / 417.9 MB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.01342, allocations: 4 kB / 417.9 MB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.01344, allocations: 19.98 kB / 417.9 MB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.01344, allocations: 0 / 417.9 MB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01344, allocations: 0 / 417.9 MB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005428/0.01398, allocations: 0.5188 MB / 418.5 MB, free: 6.168 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.79e-05/0.01401, allocations: 27.75 kB / 418.5 MB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.089e-05/0.01404, allocations: 12.06 kB / 418.5 MB, free: 6.129 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.01413, allocations: 15.98 kB / 418.5 MB, free: 6.113 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.691e-05/0.01418, allocations: 28.09 kB / 418.5 MB, free: 6.086 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.0142, allocations: 15.97 kB / 418.6 MB, free: 6.07 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001093/0.01431, allocations: 173.2 kB / 418.7 MB, free: 5.898 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.01431, allocations: 0 / 418.7 MB, free: 5.898 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002893/0.0146, allocations: 67.84 kB / 418.8 MB, free: 5.832 MB / 394.7 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,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.y) * 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.0008128/0.01541, allocations: 1.075 MB / 419.9 MB, free: 4.73 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003573/0.01577, allocations: 256.1 kB / 420.1 MB, free: 4.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.01577, allocations: 0 / 420.1 MB, free: 4.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.01591, allocations: 116.8 kB / 420.2 MB, free: 4.367 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.01616, allocations: 41.28 kB / 420.3 MB, free: 4.328 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.01873, allocations: 3.059 MB / 423.3 MB, free: 1.07 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001125/0.01884, allocations: 178.1 kB / 423.5 MB, free: 0.8789 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.906e-05/0.01894, allocations: 43.23 kB / 423.6 MB, free: 0.8359 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.01906, allocations: 112.5 kB / 423.7 MB, free: 0.7266 MB / 394.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01906, allocations: 0 / 423.7 MB, free: 0.7266 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.0391, allocations: 6.332 MB / 430 MB, free: 10.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.183/7.222, allocations: 11.27 kB / 430 MB, free: 10.38 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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_3.2.3_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.y in file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.y from file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.42851944360882]