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.001355/0.001355, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001543/0.001543, allocations: 209.2 kB / 23.73 MB, free: 4.387 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.447/1.447, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2313/0.2313, allocations: 46.96 MB / 360.9 MB, free: 4.023 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.002058/0.002058, allocations: 67.91 kB / 0.4961 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3826/0.3846, allocations: 66.03 MB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004092/0.3887, allocations: 2.181 MB / 0.5627 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001848/0.3906, allocations: 0.8657 MB / 0.5636 GB, free: 1.164 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.3907, allocations: 7.938 kB / 0.5636 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001498/0.3909, allocations: 43.47 kB / 0.5636 GB, free: 1.113 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002249/0.3911, allocations: 71.38 kB / 0.5637 GB, free: 1.043 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004145/0.3915, allocations: 183.6 kB / 0.5638 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004299/0.3919, allocations: 386.9 kB / 0.5642 GB, free: 496 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002347/0.3922, allocations: 96.56 kB / 0.5643 GB, free: 396 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002579/0.3924, allocations: 151.4 kB / 0.5645 GB, free: 244 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.3927, allocations: 159.1 kB / 0.5646 GB, free: 84 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.658e-05/0.3927, allocations: 36 kB / 0.5646 GB, free: 48 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.3928, allocations: 48 kB / 0.5647 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.3929, allocations: 87.8 kB / 0.5648 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002032/0.3931, allocations: 139.2 kB / 0.5649 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005327/0.3937, allocations: 420.1 kB / 0.5653 GB, free: 15.37 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3937, allocations: 0 / 0.5653 GB, free: 15.37 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3937, allocations: 0 / 0.5653 GB, free: 15.37 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.3937, allocations: 0 / 0.5653 GB, free: 15.37 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.001519/0.3952, allocations: 0.7306 MB / 0.566 GB, free: 14.59 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.3953, allocations: 8.031 kB / 0.566 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000128/0.3954, allocations: 83.19 kB / 0.5661 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004605/0.3958, allocations: 76.62 kB / 0.5662 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006016/0.3964, allocations: 303 kB / 0.5665 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.3965, allocations: 25.03 kB / 0.5665 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.28e-05/0.3965, allocations: 32.38 kB / 0.5665 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005708/0.3971, allocations: 293.9 kB / 0.5668 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.3971, allocations: 0 / 0.5668 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.3972, allocations: 12 kB / 0.5668 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.3972, allocations: 8 kB / 0.5668 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004749/0.3976, allocations: 206.5 kB / 0.567 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.3992, allocations: 0.7495 MB / 0.5677 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.3996, allocations: 190.8 kB / 0.5679 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.3998, allocations: 84.81 kB / 0.568 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.3999, allocations: 8 kB / 0.568 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004316/0.4003, allocations: 223.7 kB / 0.5682 GB, free: 12.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.663e-06/0.4003, allocations: 0 / 0.5682 GB, free: 12.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008497/0.4012, allocations: 377.2 kB / 0.5686 GB, free: 11.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.4012, allocations: 59.41 kB / 0.5686 GB, free: 11.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/0.4015, allocations: 272.1 kB / 0.5689 GB, free: 11.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.16e-05/0.4016, allocations: 33.7 kB / 0.5689 GB, free: 11.46 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.4017, allocations: 200.9 kB / 0.5691 GB, free: 11.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.4018, allocations: 99.16 kB / 0.5692 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.4019, allocations: 74.06 kB / 0.5693 GB, free: 11.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.4021, allocations: 346.8 kB / 0.5696 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002245/0.4024, allocations: 92.69 kB / 0.5697 GB, free: 10.64 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003341/0.4027, allocations: 230.5 kB / 0.5699 GB, free: 10.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005677/0.4033, allocations: 352.7 kB / 0.5703 GB, free: 9.945 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4033, allocations: 0 / 0.5703 GB, free: 9.945 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007019/0.404, allocations: 381.3 kB / 0.5706 GB, free: 9.566 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.404, allocations: 4 kB / 0.5706 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.404, allocations: 8 kB / 0.5706 GB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.404, allocations: 4 kB / 0.5707 GB, free: 9.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002939/0.4043, allocations: 75.83 kB / 0.5707 GB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.4043, allocations: 8 kB / 0.5707 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.4045, allocations: 31.84 kB / 0.5708 GB, free: 9.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-05/0.4045, allocations: 23.92 kB / 0.5708 GB, free: 9.414 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.0002054/0.4047, allocations: 169.7 kB / 0.5709 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.849e-05/0.4048, allocations: 31.8 kB / 0.571 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007131/0.4055, allocations: 320.3 kB / 0.5713 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.4055, allocations: 4 kB / 0.5713 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.4055, allocations: 3.938 kB / 0.5713 GB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.4055, allocations: 11.92 kB / 0.5713 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.4066, allocations: 0.6652 MB / 0.572 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4066, allocations: 0 / 0.572 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.4068, allocations: 55.98 kB / 0.572 GB, free: 8.094 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.022e-06/0.4068, allocations: 7.938 kB / 0.572 GB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.4069, allocations: 4 kB / 0.572 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-06/0.4069, allocations: 7.938 kB / 0.572 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4069, allocations: 0 / 0.572 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009456/0.4078, allocations: 0.5234 MB / 0.5725 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.389e-05/0.4079, allocations: 35.73 kB / 0.5726 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.964e-05/0.4079, allocations: 12 kB / 0.5726 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.4081, allocations: 19.92 kB / 0.5726 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.567e-05/0.4082, allocations: 23.95 kB / 0.5726 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.701e-05/0.4082, allocations: 11.98 kB / 0.5726 GB, free: 7.434 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002119/0.4084, allocations: 187.1 kB / 0.5728 GB, free: 7.254 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4084, allocations: 0 / 0.5728 GB, free: 7.254 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004136/0.4088, allocations: 83.77 kB / 0.5729 GB, free: 7.172 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.001402/0.4102, allocations: 1.077 MB / 0.5739 GB, free: 6.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006401/0.4109, allocations: 252.2 kB / 0.5742 GB, free: 5.824 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4109, allocations: 0 / 0.5742 GB, free: 5.824 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00027/0.4112, allocations: 119.8 kB / 0.5743 GB, free: 5.707 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.4116, allocations: 49.14 kB / 0.5743 GB, free: 5.656 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004917/0.4165, allocations: 3.242 MB / 0.5775 GB, free: 2.219 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.4167, allocations: 199.3 kB / 0.5777 GB, free: 2 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000175/0.4169, allocations: 47.22 kB / 0.5777 GB, free: 1.953 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.4171, allocations: 123.6 kB / 0.5779 GB, free: 1.832 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4171, allocations: 0 / 0.5779 GB, free: 1.832 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0405/0.4576, allocations: 6.712 MB / 0.5844 GB, free: 11.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.7, allocations: 7.984 kB / 0.5844 GB, free: 11.28 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.666756398044527]