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.001853/0.001853, allocations: 107.4 kB / 20.48 MB, free: 1.262 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.002149/0.002149, allocations: 207.9 kB / 23.77 MB, free: 4.434 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.499/1.499, allocations: 230.5 MB / 257.5 MB, free: 7.711 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.2375/0.2375, allocations: 46.94 MB / 360.9 MB, free: 3.902 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.002545/0.002545, allocations: 83.88 kB / 0.4962 GB, free: 7.508 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3639, allocations: 66.09 MB / 0.5608 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004757/0.3687, allocations: 2.167 MB / 0.5629 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002315/0.371, allocations: 0.8618 MB / 0.5637 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000189/0.3712, allocations: 11.88 kB / 0.5637 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001947/0.3714, allocations: 35.53 kB / 0.5638 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000331/0.3717, allocations: 67.39 kB / 0.5638 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005807/0.3723, allocations: 191.6 kB / 0.564 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005682/0.3729, allocations: 390.9 kB / 0.5644 GB, free: 284 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002722/0.3731, allocations: 88.64 kB / 0.5645 GB, free: 196 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003371/0.3735, allocations: 159.3 kB / 0.5646 GB, free: 36 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003283/0.3738, allocations: 151.3 kB / 0.5648 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.246e-05/0.3739, allocations: 40 kB / 0.5648 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.374, allocations: 48 kB / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.3741, allocations: 87.53 kB / 0.565 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.3743, allocations: 139.2 kB / 0.5651 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006386/0.375, allocations: 420.2 kB / 0.5655 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.375, allocations: 0 / 0.5655 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.375, allocations: 0 / 0.5655 GB, free: 15.17 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.375, allocations: 0 / 0.5655 GB, free: 15.17 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.001769/0.3768, allocations: 0.7345 MB / 0.5662 GB, free: 14.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.3768, allocations: 8.031 kB / 0.5662 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000156/0.377, allocations: 79.25 kB / 0.5663 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006716/0.3776, allocations: 80.61 kB / 0.5664 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007554/0.3784, allocations: 307 kB / 0.5667 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.764e-05/0.3784, allocations: 29.03 kB / 0.5667 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.059e-05/0.3785, allocations: 32.38 kB / 0.5667 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008017/0.3793, allocations: 290 kB / 0.567 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.3793, allocations: 0 / 0.567 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.772e-05/0.3794, allocations: 12 kB / 0.567 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.3794, allocations: 4 kB / 0.567 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006636/0.3801, allocations: 206.5 kB / 0.5672 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.382, allocations: 0.7457 MB / 0.5679 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006024/0.3826, allocations: 194.8 kB / 0.5681 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002985/0.3829, allocations: 84.81 kB / 0.5682 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.383, allocations: 8 kB / 0.5682 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006035/0.3836, allocations: 235.1 kB / 0.5684 GB, free: 12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 3.026e-06/0.3836, allocations: 0 / 0.5684 GB, free: 12 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.001174/0.3847, allocations: 369.3 kB / 0.5688 GB, free: 11.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.101e-05/0.3848, allocations: 59.41 kB / 0.5688 GB, free: 11.56 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004055/0.3852, allocations: 272.2 kB / 0.5691 GB, free: 11.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.714e-05/0.3853, allocations: 33.7 kB / 0.5691 GB, free: 11.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.3854, allocations: 192.9 kB / 0.5693 GB, free: 11.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.3856, allocations: 107.1 kB / 0.5694 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.3857, allocations: 74.06 kB / 0.5695 GB, free: 10.87 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.3859, allocations: 346.8 kB / 0.5698 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003077/0.3862, allocations: 96.69 kB / 0.5699 GB, free: 10.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004382/0.3867, allocations: 222.5 kB / 0.5701 GB, free: 10.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007615/0.3874, allocations: 340.9 kB / 0.5704 GB, free: 9.754 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.3875, allocations: 4 kB / 0.5705 GB, free: 9.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001002/0.3885, allocations: 381.2 kB / 0.5708 GB, free: 9.371 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.3885, allocations: 8 kB / 0.5708 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.3885, allocations: 7.984 kB / 0.5708 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.903e-05/0.3885, allocations: 8 kB / 0.5708 GB, free: 9.348 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004518/0.389, allocations: 67.91 kB / 0.5709 GB, free: 9.281 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.39e-05/0.389, allocations: 15.92 kB / 0.5709 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002786/0.3893, allocations: 27.84 kB / 0.5709 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.036e-05/0.3893, allocations: 31.91 kB / 0.571 GB, free: 9.207 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.0002933/0.3896, allocations: 161.9 kB / 0.5711 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.135e-05/0.3897, allocations: 35.8 kB / 0.5712 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009609/0.3907, allocations: 324.3 kB / 0.5715 GB, free: 8.676 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.3907, allocations: 4.094 kB / 0.5715 GB, free: 8.672 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.3907, allocations: 3.938 kB / 0.5715 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.3907, allocations: 3.984 kB / 0.5715 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.3921, allocations: 0.6768 MB / 0.5721 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3921, allocations: 0 / 0.5721 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000364/0.3924, allocations: 47.97 kB / 0.5722 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.3924, allocations: 0 / 0.5722 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.842e-05/0.3925, allocations: 11.98 kB / 0.5722 GB, free: 7.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.3925, allocations: 3.938 kB / 0.5722 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3925, allocations: 0 / 0.5722 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.3938, allocations: 0.535 MB / 0.5727 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.959e-05/0.3939, allocations: 27.75 kB / 0.5728 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.158e-05/0.3939, allocations: 16.17 kB / 0.5728 GB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.3942, allocations: 19.92 kB / 0.5728 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.009e-05/0.3943, allocations: 23.97 kB / 0.5728 GB, free: 7.238 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.042e-05/0.3943, allocations: 11.98 kB / 0.5728 GB, free: 7.227 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002735/0.3946, allocations: 191.1 kB / 0.573 GB, free: 7.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3946, allocations: 0 / 0.573 GB, free: 7.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006/0.3952, allocations: 71.78 kB / 0.5731 GB, free: 6.973 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.001674/0.3969, allocations: 1.087 MB / 0.5741 GB, free: 5.859 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008087/0.3977, allocations: 256 kB / 0.5744 GB, free: 5.609 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3977, allocations: 0 / 0.5744 GB, free: 5.609 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003581/0.398, allocations: 124.2 kB / 0.5745 GB, free: 5.488 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005517/0.3986, allocations: 43.3 kB / 0.5745 GB, free: 5.445 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005925/0.4045, allocations: 3.242 MB / 0.5777 GB, free: 2.004 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.4048, allocations: 195.4 kB / 0.5779 GB, free: 1.789 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002323/0.405, allocations: 46.94 kB / 0.5779 GB, free: 1.742 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002689/0.4053, allocations: 128.5 kB / 0.5781 GB, free: 1.613 MB / 414.1 MB Notification: Performance of SimCode: time 1.183e-06/0.4053, allocations: 0 / 0.5781 GB, free: 1.613 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04213/0.4474, allocations: 6.78 MB / 0.5847 GB, free: 10.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.77, allocations: 11.91 kB / 0.5847 GB, free: 10.95 MB / 430.1 MB " [Timeout remaining time 648] (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.1.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 Time in file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable Time from file ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.csv failed! 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! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.971900784003083]