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.001779/0.001779, allocations: 105.1 kB / 21.22 MB, free: 0.5078 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.002278/0.002278, allocations: 214.9 kB / 24.51 MB, free: 3.688 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.564/1.564, allocations: 230.6 MB / 258.3 MB, free: 7.805 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.2471/0.2471, allocations: 46.97 MB / 361.7 MB, free: 4.113 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 75.83 kB / 0.4969 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3673, allocations: 66.03 MB / 0.5614 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004724/0.372, allocations: 2.178 MB / 0.5635 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001738/0.3738, allocations: 0.8579 MB / 0.5643 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.3739, allocations: 11.94 kB / 0.5643 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.3741, allocations: 39.53 kB / 0.5644 GB, free: 1.133 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002899/0.3744, allocations: 67.38 kB / 0.5644 GB, free: 1.066 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004878/0.3749, allocations: 183.6 kB / 0.5646 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004932/0.3754, allocations: 386.9 kB / 0.565 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002904/0.3757, allocations: 104.6 kB / 0.5651 GB, free: 412 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003061/0.376, allocations: 159.3 kB / 0.5652 GB, free: 252 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002905/0.3762, allocations: 163.2 kB / 0.5654 GB, free: 88 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.53e-05/0.3763, allocations: 39.94 kB / 0.5654 GB, free: 48 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.3765, allocations: 56.02 kB / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.917e-05/0.3766, allocations: 79.72 kB / 0.5655 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.3767, allocations: 143.2 kB / 0.5657 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005066/0.3773, allocations: 412.5 kB / 0.5661 GB, free: 15.37 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3773, allocations: 0 / 0.5661 GB, free: 15.37 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3773, allocations: 0 / 0.5661 GB, free: 15.37 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.3773, allocations: 4 kB / 0.5661 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.0014/0.3787, allocations: 0.7306 MB / 0.5668 GB, free: 14.59 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3787, allocations: 8.031 kB / 0.5668 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.665e-05/0.3788, allocations: 16.78 kB / 0.5668 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.3789, allocations: 83.25 kB / 0.5669 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004935/0.3794, allocations: 88.61 kB / 0.567 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005813/0.3799, allocations: 299 kB / 0.5673 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.958e-05/0.38, allocations: 29.03 kB / 0.5673 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.28e-05/0.3801, allocations: 48.02 kB / 0.5673 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000626/0.3807, allocations: 309.9 kB / 0.5676 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.3807, allocations: 11.95 kB / 0.5676 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.793e-05/0.3808, allocations: 12 kB / 0.5677 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.3808, allocations: 4 kB / 0.5677 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004772/0.3813, allocations: 222.5 kB / 0.5679 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001498/0.3828, allocations: 0.7773 MB / 0.5686 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005177/0.3833, allocations: 233.7 kB / 0.5689 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000266/0.3835, allocations: 133.4 kB / 0.569 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.3836, allocations: 4.328 kB / 0.569 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000515/0.3841, allocations: 258.5 kB / 0.5692 GB, free: 11.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 2.304e-06/0.3841, allocations: 0 / 0.5692 GB, free: 11.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.002121/0.3862, allocations: 0.8403 MB / 0.5701 GB, free: 11.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/0.3863, allocations: 63.83 kB / 0.5701 GB, free: 11.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.3866, allocations: 264.2 kB / 0.5704 GB, free: 10.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.778e-05/0.3866, allocations: 41.7 kB / 0.5704 GB, free: 10.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.3868, allocations: 185 kB / 0.5706 GB, free: 10.56 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/0.3869, allocations: 182.4 kB / 0.5708 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/0.3871, allocations: 102.3 kB / 0.5709 GB, free: 10.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3873, allocations: 350.8 kB / 0.5712 GB, free: 9.926 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.3876, allocations: 137.2 kB / 0.5713 GB, free: 9.793 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004341/0.388, allocations: 302.2 kB / 0.5716 GB, free: 9.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007535/0.3888, allocations: 470.8 kB / 0.5721 GB, free: 8.902 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3888, allocations: 8 kB / 0.5721 GB, free: 8.895 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009365/0.3897, allocations: 0.5052 MB / 0.5726 GB, free: 8.383 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.3897, allocations: 8 kB / 0.5726 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.3897, allocations: 8 kB / 0.5726 GB, free: 8.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.888e-05/0.3898, allocations: 11.94 kB / 0.5726 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004711/0.3902, allocations: 115.8 kB / 0.5727 GB, free: 8.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.3902, allocations: 11.94 kB / 0.5727 GB, free: 8.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.3905, allocations: 23.98 kB / 0.5727 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.3905, allocations: 28 kB / 0.5728 GB, free: 8.18 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.0002433/0.3908, allocations: 181.6 kB / 0.5729 GB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-05/0.3908, allocations: 39.77 kB / 0.573 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009768/0.3918, allocations: 465.5 kB / 0.5734 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.3918, allocations: 4 kB / 0.5734 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3918, allocations: 0 / 0.5734 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.3918, allocations: 3.984 kB / 0.5734 GB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/0.3937, allocations: 1.018 MB / 0.5744 GB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3937, allocations: 0 / 0.5744 GB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003897/0.3941, allocations: 87.89 kB / 0.5745 GB, free: 6.305 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.3941, allocations: 12.16 kB / 0.5745 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.653e-05/0.3941, allocations: 11.98 kB / 0.5745 GB, free: 6.281 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.616e-06/0.3941, allocations: 7.938 kB / 0.5745 GB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3941, allocations: 4 kB / 0.5745 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/0.3954, allocations: 0.7478 MB / 0.5753 GB, free: 5.484 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.422e-05/0.3955, allocations: 35.83 kB / 0.5753 GB, free: 5.449 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.349e-05/0.3955, allocations: 23.92 kB / 0.5753 GB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/0.3958, allocations: 27.92 kB / 0.5753 GB, free: 5.398 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.3959, allocations: 36.38 kB / 0.5754 GB, free: 5.363 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.982e-05/0.3959, allocations: 19.98 kB / 0.5754 GB, free: 5.344 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002235/0.3961, allocations: 191.1 kB / 0.5756 GB, free: 5.152 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3961, allocations: 0 / 0.5756 GB, free: 5.152 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004679/0.3966, allocations: 80 kB / 0.5757 GB, free: 5.074 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.001632/0.3982, allocations: 1.32 MB / 0.5769 GB, free: 3.703 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007865/0.399, allocations: 371.5 kB / 0.5773 GB, free: 3.344 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.399, allocations: 8.125 kB / 0.5773 GB, free: 3.336 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003671/0.3994, allocations: 190.3 kB / 0.5775 GB, free: 3.152 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004682/0.3999, allocations: 56.16 kB / 0.5775 GB, free: 3.102 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00554/0.4054, allocations: 3.861 MB / 0.5813 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.4057, allocations: 217.9 kB / 0.5815 GB, free: 14.74 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002257/0.4059, allocations: 59.25 kB / 0.5816 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002815/0.4062, allocations: 147.4 kB / 0.5817 GB, free: 14.54 MB / 430.1 MB Notification: Performance of SimCode: time 1.844e-06/0.4062, allocations: 0 / 0.5817 GB, free: 14.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03164/0.4378, allocations: 7.933 MB / 0.5895 GB, free: 6.789 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.47, allocations: 10.39 kB / 0.5895 GB, free: 6.781 MB / 430.1 MB " [Timeout remaining time 647] (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] [Calling os._exit(0), Time elapsed: 15.589710809057578] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'yMean', 'yRectifiedMean', 'yRootMeanSquare', 'yHarmonicCos', 'yHarmonicSin', 'yHarmonicAbs', 'yHarmonicArg'] 12.64188864605967 12.659089604 12.27842809 Calling exit ...