Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001325/0.001325, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001491/0.001491, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.483/1.483, allocations: 230.6 MB / 258.3 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2227/0.2227, allocations: 44.92 MB / 359.6 MB, free: 6.297 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003005/0.003005, allocations: 67.89 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.3777, allocations: 65.47 MB / 0.5578 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.005339/0.383, allocations: 2.325 MB / 0.5601 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002621/0.3856, allocations: 0.9163 MB / 0.561 GB, free: 4.531 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002708/0.3859, allocations: 11.94 kB / 0.561 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002198/0.3861, allocations: 35.55 kB / 0.561 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003643/0.3865, allocations: 71.33 kB / 0.5611 GB, free: 4.414 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007078/0.3872, allocations: 179.7 kB / 0.5612 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006169/0.3878, allocations: 390.9 kB / 0.5616 GB, free: 3.855 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003136/0.3881, allocations: 108.5 kB / 0.5617 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004232/0.3885, allocations: 155.4 kB / 0.5619 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003309/0.3889, allocations: 167.1 kB / 0.562 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.532e-05/0.3889, allocations: 36 kB / 0.5621 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.3891, allocations: 52 kB / 0.5621 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.3892, allocations: 91.67 kB / 0.5622 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002417/0.3895, allocations: 171 kB / 0.5624 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006317/0.3901, allocations: 412.3 kB / 0.5627 GB, free: 2.684 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.3901, allocations: 8 kB / 0.5628 GB, free: 2.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3901, allocations: 0 / 0.5628 GB, free: 2.676 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.3901, allocations: 0 / 0.5628 GB, free: 2.676 MB / 398.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.001489/0.3916, allocations: 0.7228 MB / 0.5635 GB, free: 1.906 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.3917, allocations: 12.03 kB / 0.5635 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.931e-05/0.3917, allocations: 16.78 kB / 0.5635 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001233/0.3918, allocations: 87.19 kB / 0.5636 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005047/0.3923, allocations: 84.61 kB / 0.5637 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006086/0.3929, allocations: 303 kB / 0.5639 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.851e-05/0.393, allocations: 25.03 kB / 0.564 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.195e-05/0.3931, allocations: 56.08 kB / 0.564 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006193/0.3937, allocations: 301.9 kB / 0.5643 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.3937, allocations: 7.953 kB / 0.5643 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.768e-05/0.3937, allocations: 19.98 kB / 0.5643 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.3938, allocations: 8 kB / 0.5643 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004977/0.3943, allocations: 214.5 kB / 0.5645 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.3959, allocations: 0.8591 MB / 0.5654 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005513/0.3964, allocations: 235.5 kB / 0.5656 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002946/0.3967, allocations: 136.1 kB / 0.5657 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.3967, allocations: 8.328 kB / 0.5657 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005321/0.3973, allocations: 250.5 kB / 0.566 GB, free: 15.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 2.315e-06/0.3973, allocations: 3.938 kB / 0.566 GB, free: 15.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.00213/0.3994, allocations: 0.8325 MB / 0.5668 GB, free: 14.37 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.3995, allocations: 67.78 kB / 0.5669 GB, free: 14.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003136/0.3998, allocations: 264.2 kB / 0.5671 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/0.3998, allocations: 41.7 kB / 0.5672 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.4, allocations: 181 kB / 0.5673 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001996/0.4002, allocations: 190.4 kB / 0.5675 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.4003, allocations: 98.33 kB / 0.5676 GB, free: 13.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.4005, allocations: 350.8 kB / 0.5679 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003024/0.4008, allocations: 133.2 kB / 0.5681 GB, free: 13.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000443/0.4013, allocations: 302.2 kB / 0.5684 GB, free: 12.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008092/0.4021, allocations: 482.8 kB / 0.5688 GB, free: 12.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4021, allocations: 0 / 0.5688 GB, free: 12.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001017/0.4031, allocations: 0.5044 MB / 0.5693 GB, free: 11.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.4031, allocations: 8.562 kB / 0.5693 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.4031, allocations: 8 kB / 0.5693 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.301e-05/0.4032, allocations: 11.94 kB / 0.5693 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004657/0.4036, allocations: 119.8 kB / 0.5695 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.09e-05/0.4036, allocations: 15.92 kB / 0.5695 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.4039, allocations: 20 kB / 0.5695 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.945e-05/0.4039, allocations: 23.98 kB / 0.5695 GB, free: 11.41 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.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 (69): * Single equations (assignments): 69 * 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.0002787/0.4042, allocations: 174.8 kB / 0.5697 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.322e-05/0.4043, allocations: 43.75 kB / 0.5697 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/0.4053, allocations: 461.5 kB / 0.5702 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.4053, allocations: 11.98 kB / 0.5702 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4053, allocations: 0 / 0.5702 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.4053, allocations: 0 / 0.5702 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.4073, allocations: 1.061 MB / 0.5712 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.4073, allocations: 4 kB / 0.5712 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000405/0.4077, allocations: 87.83 kB / 0.5713 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.043e-05/0.4078, allocations: 7.938 kB / 0.5713 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.373e-05/0.4078, allocations: 19.98 kB / 0.5713 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.077e-06/0.4078, allocations: 8 kB / 0.5713 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4078, allocations: 0 / 0.5713 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.4092, allocations: 0.7558 MB / 0.5721 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.594e-05/0.4093, allocations: 31.77 kB / 0.5721 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.086e-05/0.4094, allocations: 23.98 kB / 0.5721 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.4096, allocations: 19.98 kB / 0.5721 GB, free: 8.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.4097, allocations: 36.38 kB / 0.5722 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.155e-05/0.4098, allocations: 27.92 kB / 0.5722 GB, free: 8.527 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002229/0.41, allocations: 187.1 kB / 0.5724 GB, free: 8.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.41, allocations: 4 kB / 0.5724 GB, free: 8.336 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005206/0.4105, allocations: 76 kB / 0.5725 GB, free: 8.262 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (56): * Single equations (assignments): 51 * 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.001673/0.4122, allocations: 1.316 MB / 0.5737 GB, free: 6.891 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008586/0.413, allocations: 381.4 kB / 0.5741 GB, free: 6.523 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.413, allocations: 0 / 0.5741 GB, free: 6.523 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003999/0.4134, allocations: 191.8 kB / 0.5743 GB, free: 6.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000504/0.4139, allocations: 52.91 kB / 0.5743 GB, free: 6.289 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005788/0.4197, allocations: 3.865 MB / 0.5781 GB, free: 2.168 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005048/0.4202, allocations: 0.8212 MB / 0.5789 GB, free: 1.316 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002523/0.4205, allocations: 59.52 kB / 0.579 GB, free: 1.258 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.4208, allocations: 147.4 kB / 0.5791 GB, free: 1.113 MB / 414.1 MB Notification: Performance of SimCode: time 1.153e-06/0.4208, allocations: 4 kB / 0.5791 GB, free: 1.109 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03547/0.4562, allocations: 7.86 MB / 0.5868 GB, free: 9.391 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.48, allocations: 8.969 kB / 0.5868 GB, free: 9.387 MB / 430.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.517518776992802] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'mean.y'] 12.654013521969318 12.682801265 12.286870149 Calling exit ...