Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001257/0.001257, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002158/0.002158, allocations: 217.5 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 230.3 MB / 258 MB, free: 8.223 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2273/0.2273, allocations: 46.89 MB / 361.3 MB, free: 4.547 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002219/0.002219, allocations: 75.88 kB / 0.4966 GB, free: 8.125 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.3421, allocations: 66.03 MB / 0.5611 GB, free: 4.695 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003748/0.3458, allocations: 2.328 MB / 0.5633 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.3475, allocations: 0.9124 MB / 0.5642 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.3476, allocations: 11.88 kB / 0.5642 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.3478, allocations: 39.53 kB / 0.5643 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002526/0.348, allocations: 67.38 kB / 0.5643 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004066/0.3484, allocations: 179.6 kB / 0.5645 GB, free: 1.148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004302/0.3488, allocations: 390.9 kB / 0.5649 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.3491, allocations: 104.6 kB / 0.565 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002382/0.3493, allocations: 163.3 kB / 0.5651 GB, free: 0.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002037/0.3495, allocations: 163.2 kB / 0.5653 GB, free: 348 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.393e-05/0.3496, allocations: 36 kB / 0.5653 GB, free: 312 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.493e-05/0.3497, allocations: 47.98 kB / 0.5654 GB, free: 264 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.704e-05/0.3497, allocations: 95.62 kB / 0.5655 GB, free: 168 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.3499, allocations: 175.2 kB / 0.5656 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004336/0.3504, allocations: 412.3 kB / 0.566 GB, free: 15.59 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.3504, allocations: 0 / 0.566 GB, free: 15.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.3504, allocations: 0 / 0.566 GB, free: 15.59 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.3504, allocations: 4 kB / 0.566 GB, free: 15.59 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.00122/0.3516, allocations: 0.802 MB / 0.5668 GB, free: 14.72 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.3516, allocations: 12.03 kB / 0.5668 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.657e-05/0.3517, allocations: 79.25 kB / 0.5669 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004451/0.3522, allocations: 88.61 kB / 0.567 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005326/0.3527, allocations: 360.8 kB / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.831e-05/0.3527, allocations: 29.03 kB / 0.5673 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.139e-05/0.3528, allocations: 28.38 kB / 0.5674 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005413/0.3533, allocations: 294 kB / 0.5677 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.3533, allocations: 7.938 kB / 0.5677 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.3534, allocations: 8 kB / 0.5677 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.3534, allocations: 8 kB / 0.5677 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004555/0.3538, allocations: 206.5 kB / 0.5679 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.3552, allocations: 0.8623 MB / 0.5687 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004208/0.3557, allocations: 192.1 kB / 0.5689 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.3559, allocations: 84.81 kB / 0.569 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.3559, allocations: 7.984 kB / 0.569 GB, free: 12.37 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004227/0.3563, allocations: 223.7 kB / 0.5692 GB, free: 12.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.903e-06/0.3563, allocations: 4 kB / 0.5692 GB, free: 12.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008102/0.3571, allocations: 373.3 kB / 0.5696 GB, free: 11.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.3572, allocations: 59.39 kB / 0.5696 GB, free: 11.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.3575, allocations: 272.1 kB / 0.5699 GB, free: 11.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.597e-05/0.3575, allocations: 33.7 kB / 0.5699 GB, free: 11.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.3577, allocations: 196.9 kB / 0.5701 GB, free: 11.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.458e-05/0.3578, allocations: 99.22 kB / 0.5702 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.3579, allocations: 70.06 kB / 0.5703 GB, free: 11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.358, allocations: 346.7 kB / 0.5706 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002053/0.3582, allocations: 88.7 kB / 0.5707 GB, free: 10.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003129/0.3586, allocations: 234.5 kB / 0.5709 GB, free: 10.28 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000543/0.3591, allocations: 348.8 kB / 0.5712 GB, free: 9.879 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3591, allocations: 0 / 0.5712 GB, free: 9.879 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006876/0.3598, allocations: 376.8 kB / 0.5716 GB, free: 9.504 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.3598, allocations: 8 kB / 0.5716 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3598, allocations: 4 kB / 0.5716 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.3598, allocations: 8 kB / 0.5716 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.3601, allocations: 76.3 kB / 0.5717 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.3601, allocations: 11.94 kB / 0.5717 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.3603, allocations: 39.77 kB / 0.5717 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.3603, allocations: 23.94 kB / 0.5718 GB, free: 9.336 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.0002079/0.3605, allocations: 161.7 kB / 0.5719 GB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.758e-05/0.3606, allocations: 31.81 kB / 0.5719 GB, free: 9.137 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007082/0.3613, allocations: 324.3 kB / 0.5722 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3613, allocations: 4 kB / 0.5723 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3613, allocations: 0 / 0.5723 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3613, allocations: 0 / 0.5723 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.3624, allocations: 0.7363 MB / 0.573 GB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3624, allocations: 0 / 0.573 GB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002513/0.3626, allocations: 51.91 kB / 0.573 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3626, allocations: 4 kB / 0.573 GB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.853e-05/0.3626, allocations: 11.98 kB / 0.573 GB, free: 7.949 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3626, allocations: 3.938 kB / 0.573 GB, free: 7.945 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3626, allocations: 0 / 0.573 GB, free: 7.945 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000908/0.3636, allocations: 0.5311 MB / 0.5736 GB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.437e-05/0.3636, allocations: 108.8 kB / 0.5737 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.817e-05/0.3637, allocations: 12.14 kB / 0.5737 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001787/0.3639, allocations: 23.86 kB / 0.5737 GB, free: 7.238 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.459e-05/0.3639, allocations: 20.11 kB / 0.5737 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.364, allocations: 11.98 kB / 0.5737 GB, free: 7.207 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001938/0.3641, allocations: 191.1 kB / 0.5739 GB, free: 7.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3641, allocations: 0 / 0.5739 GB, free: 7.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003889/0.3645, allocations: 75.78 kB / 0.574 GB, free: 6.945 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.001325/0.3659, allocations: 1.079 MB / 0.575 GB, free: 5.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006308/0.3665, allocations: 256.2 kB / 0.5753 GB, free: 5.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3665, allocations: 0 / 0.5753 GB, free: 5.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002493/0.3667, allocations: 123.7 kB / 0.5754 GB, free: 5.469 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.3671, allocations: 44.03 kB / 0.5754 GB, free: 5.426 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004286/0.3714, allocations: 3.237 MB / 0.5786 GB, free: 1.984 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004557/0.3719, allocations: 0.7997 MB / 0.5794 GB, free: 1.156 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.372, allocations: 47.22 kB / 0.5794 GB, free: 1.109 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001934/0.3722, allocations: 127.4 kB / 0.5795 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3722, allocations: 4 kB / 0.5796 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02949/0.4017, allocations: 6.215 MB / 0.5856 GB, free: 10.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.453/8.854, allocations: 6.812 kB / 0.5856 GB, free: 10.83 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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_trunk_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.y in file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.y from file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.828831027960405]