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.001818/0.001818, 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.002222/0.002222, 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.452/1.452, 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.2216/0.2216, allocations: 46.93 MB / 360.9 MB, free: 4.27 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.003215/0.003215, allocations: 67.89 kB / 0.4962 GB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3527, allocations: 66.04 MB / 0.5606 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004006/0.3567, allocations: 2.334 MB / 0.5629 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.3586, allocations: 0.9163 MB / 0.5638 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002561/0.3588, allocations: 11.88 kB / 0.5638 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.359, allocations: 31.55 kB / 0.5639 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.3593, allocations: 71.38 kB / 0.5639 GB, free: 1.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005032/0.3598, allocations: 187.6 kB / 0.5641 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004561/0.3602, allocations: 382.9 kB / 0.5645 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002394/0.3605, allocations: 100.6 kB / 0.5646 GB, free: 464 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002551/0.3607, allocations: 159.3 kB / 0.5647 GB, free: 304 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002471/0.361, allocations: 167.2 kB / 0.5649 GB, free: 136 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.541e-05/0.361, allocations: 43.94 kB / 0.5649 GB, free: 92 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.3611, allocations: 51.98 kB / 0.565 GB, free: 40 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.3612, allocations: 87.69 kB / 0.5651 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001765/0.3614, allocations: 171 kB / 0.5652 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004882/0.3619, allocations: 416.3 kB / 0.5656 GB, free: 15.38 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3619, allocations: 0 / 0.5656 GB, free: 15.38 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3619, allocations: 0 / 0.5656 GB, free: 15.38 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.3619, allocations: 0 / 0.5656 GB, free: 15.38 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.001298/0.3632, allocations: 0.7306 MB / 0.5663 GB, free: 14.6 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.3633, allocations: 8.031 kB / 0.5663 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.3634, allocations: 79.27 kB / 0.5664 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004654/0.3638, allocations: 80.61 kB / 0.5665 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005286/0.3644, allocations: 306.9 kB / 0.5668 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.3644, allocations: 25.03 kB / 0.5668 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.669e-05/0.3645, allocations: 32.38 kB / 0.5668 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005359/0.365, allocations: 286 kB / 0.5671 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.365, allocations: 0 / 0.5671 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/0.365, allocations: 19.92 kB / 0.5671 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.3651, allocations: 12 kB / 0.5671 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004376/0.3655, allocations: 198.5 kB / 0.5673 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.367, allocations: 0.8353 MB / 0.5681 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004126/0.3674, allocations: 178.8 kB / 0.5683 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002207/0.3676, allocations: 104.7 kB / 0.5684 GB, free: 12.37 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.3676, allocations: 4 kB / 0.5684 GB, free: 12.37 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004299/0.3681, allocations: 231.6 kB / 0.5686 GB, free: 12.13 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.443e-06/0.3681, allocations: 0 / 0.5686 GB, free: 12.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008027/0.3689, allocations: 365.3 kB / 0.569 GB, free: 11.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.3689, allocations: 67.38 kB / 0.5691 GB, free: 11.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.3692, allocations: 264.2 kB / 0.5693 GB, free: 11.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.3692, allocations: 33.7 kB / 0.5693 GB, free: 11.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.3694, allocations: 196.9 kB / 0.5695 GB, free: 11.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.714e-05/0.3695, allocations: 99.17 kB / 0.5696 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.3696, allocations: 70.06 kB / 0.5697 GB, free: 11.01 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.3698, allocations: 354.7 kB / 0.57 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.37, allocations: 84.7 kB / 0.5701 GB, free: 10.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003117/0.3703, allocations: 226.5 kB / 0.5703 GB, free: 10.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00054/0.3708, allocations: 348.8 kB / 0.5707 GB, free: 9.887 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.3708, allocations: 4 kB / 0.5707 GB, free: 9.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006883/0.3715, allocations: 385.1 kB / 0.571 GB, free: 9.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.3715, allocations: 8 kB / 0.571 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.3715, allocations: 4 kB / 0.571 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.3716, allocations: 8.141 kB / 0.571 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.3719, allocations: 71.89 kB / 0.5711 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/0.3719, allocations: 11.94 kB / 0.5711 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.372, allocations: 35.81 kB / 0.5712 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/0.3721, allocations: 19.94 kB / 0.5712 GB, free: 9.344 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.0001768/0.3722, allocations: 169.7 kB / 0.5713 GB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.558e-05/0.3723, allocations: 31.81 kB / 0.5714 GB, free: 9.137 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006419/0.3729, allocations: 324.3 kB / 0.5717 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3729, allocations: 0 / 0.5717 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.373, allocations: 8 kB / 0.5717 GB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.373, allocations: 0 / 0.5717 GB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009954/0.374, allocations: 0.7041 MB / 0.5724 GB, free: 8.047 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.374, allocations: 4 kB / 0.5724 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002381/0.3742, allocations: 43.97 kB / 0.5724 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3742, allocations: 3.984 kB / 0.5724 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.668e-05/0.3742, allocations: 8 kB / 0.5724 GB, free: 7.988 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.3742, allocations: 7.938 kB / 0.5724 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3742, allocations: 0 / 0.5724 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008959/0.3751, allocations: 0.5233 MB / 0.573 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.497e-05/0.3752, allocations: 35.73 kB / 0.573 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.885e-05/0.3752, allocations: 12 kB / 0.573 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.3754, allocations: 23.92 kB / 0.573 GB, free: 7.371 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.598e-05/0.3755, allocations: 23.95 kB / 0.573 GB, free: 7.348 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.3755, allocations: 12.12 kB / 0.5731 GB, free: 7.336 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000186/0.3757, allocations: 191.1 kB / 0.5732 GB, free: 7.152 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3757, allocations: 0 / 0.5732 GB, free: 7.152 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003579/0.376, allocations: 75.78 kB / 0.5733 GB, free: 7.078 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.001214/0.3772, allocations: 1.079 MB / 0.5744 GB, free: 5.973 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005365/0.3778, allocations: 252.6 kB / 0.5746 GB, free: 5.727 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3778, allocations: 288 / 0.5746 GB, free: 5.727 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002492/0.378, allocations: 123.7 kB / 0.5747 GB, free: 5.605 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.3784, allocations: 47.66 kB / 0.5748 GB, free: 5.559 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004341/0.3827, allocations: 3.249 MB / 0.5779 GB, free: 2.109 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.3832, allocations: 0.7959 MB / 0.5787 GB, free: 1.285 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001407/0.3833, allocations: 42.95 kB / 0.5788 GB, free: 1.242 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001942/0.3835, allocations: 127.4 kB / 0.5789 GB, free: 1.117 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3835, allocations: 0 / 0.5789 GB, free: 1.117 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03985/0.4234, allocations: 6.331 MB / 0.5851 GB, free: 10.92 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.78, allocations: 7.875 kB / 0.5851 GB, free: 10.91 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.747274688910693]