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: 112.2 kB / 21.22 MB, free: 0.7344 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.001473/0.001473, allocations: 208.4 kB / 24.52 MB, free: 4.141 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.502/1.502, allocations: 230.6 MB / 258.3 MB, free: 7.973 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.2803/0.2803, allocations: 46.94 MB / 361.7 MB, free: 4.258 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.001976/0.001976, allocations: 67.91 kB / 0.4969 GB, free: 7.902 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3362, allocations: 66.03 MB / 0.5614 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003908/0.3401, allocations: 2.33 MB / 0.5637 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.3418, allocations: 0.9202 MB / 0.5646 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.342, allocations: 7.938 kB / 0.5646 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.3421, allocations: 43.47 kB / 0.5646 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002502/0.3424, allocations: 63.41 kB / 0.5647 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004175/0.3428, allocations: 191.6 kB / 0.5649 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004594/0.3432, allocations: 386.9 kB / 0.5652 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002269/0.3435, allocations: 100.6 kB / 0.5653 GB, free: 440 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/0.3437, allocations: 159.3 kB / 0.5655 GB, free: 280 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002614/0.344, allocations: 167.2 kB / 0.5657 GB, free: 112 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.748e-05/0.3441, allocations: 36 kB / 0.5657 GB, free: 76 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.3442, allocations: 48 kB / 0.5657 GB, free: 28 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.3443, allocations: 91.61 kB / 0.5658 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000179/0.3445, allocations: 171.1 kB / 0.566 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005187/0.345, allocations: 416.3 kB / 0.5664 GB, free: 15.36 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.345, allocations: 3.938 kB / 0.5664 GB, free: 15.36 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.345, allocations: 0 / 0.5664 GB, free: 15.36 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.345, allocations: 0 / 0.5664 GB, free: 15.36 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.001376/0.3464, allocations: 0.7228 MB / 0.5671 GB, free: 14.59 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3464, allocations: 8.031 kB / 0.5671 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.59e-05/0.3465, allocations: 20.73 kB / 0.5671 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001156/0.3466, allocations: 87.25 kB / 0.5672 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000466/0.347, allocations: 84.61 kB / 0.5673 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005447/0.3476, allocations: 302.9 kB / 0.5676 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.731e-05/0.3476, allocations: 25.03 kB / 0.5676 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.631e-05/0.3477, allocations: 52.06 kB / 0.5676 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005921/0.3483, allocations: 302 kB / 0.5679 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/0.3483, allocations: 11.94 kB / 0.5679 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.3483, allocations: 15.98 kB / 0.568 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.3484, allocations: 8 kB / 0.568 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004892/0.3488, allocations: 214.5 kB / 0.5682 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.3504, allocations: 0.8591 MB / 0.569 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004872/0.3509, allocations: 229.3 kB / 0.5692 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002752/0.3512, allocations: 141.4 kB / 0.5694 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.3512, allocations: 8.312 kB / 0.5694 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004887/0.3517, allocations: 258.4 kB / 0.5696 GB, free: 11.89 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 1.784e-06/0.3517, allocations: 0 / 0.5696 GB, free: 11.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.002029/0.3537, allocations: 0.8325 MB / 0.5704 GB, free: 11.06 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.711e-05/0.3538, allocations: 59.84 kB / 0.5705 GB, free: 10.99 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/0.3541, allocations: 276.2 kB / 0.5708 GB, free: 10.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.626e-05/0.3541, allocations: 37.7 kB / 0.5708 GB, free: 10.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3543, allocations: 177 kB / 0.571 GB, free: 10.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.3544, allocations: 186.4 kB / 0.5711 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.3546, allocations: 102.3 kB / 0.5712 GB, free: 10.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.3548, allocations: 346.8 kB / 0.5716 GB, free: 9.848 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002907/0.355, allocations: 137.2 kB / 0.5717 GB, free: 9.715 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004503/0.3555, allocations: 310.1 kB / 0.572 GB, free: 9.344 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007736/0.3563, allocations: 478.8 kB / 0.5724 GB, free: 8.809 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3563, allocations: 8 kB / 0.5725 GB, free: 8.801 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009206/0.3572, allocations: 0.5012 MB / 0.5729 GB, free: 8.293 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3572, allocations: 8 kB / 0.573 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3572, allocations: 4 kB / 0.573 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.3573, allocations: 11.94 kB / 0.573 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004454/0.3577, allocations: 119.8 kB / 0.5731 GB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-05/0.3577, allocations: 11.98 kB / 0.5731 GB, free: 8.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/0.358, allocations: 19.94 kB / 0.5731 GB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-05/0.358, allocations: 27.98 kB / 0.5731 GB, free: 8.094 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.0002267/0.3582, allocations: 177.7 kB / 0.5733 GB, free: 7.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.041e-05/0.3583, allocations: 39.77 kB / 0.5733 GB, free: 7.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009179/0.3592, allocations: 465.5 kB / 0.5738 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.3592, allocations: 4 kB / 0.5738 GB, free: 7.402 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3592, allocations: 4 kB / 0.5738 GB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.3592, allocations: 4 kB / 0.5738 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001812/0.361, allocations: 1.053 MB / 0.5748 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.3611, allocations: 4 kB / 0.5748 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000374/0.3614, allocations: 83.89 kB / 0.5749 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.3614, allocations: 7.938 kB / 0.5749 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.953e-05/0.3615, allocations: 19.98 kB / 0.5749 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.3615, allocations: 4 kB / 0.5749 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.3615, allocations: 144 / 0.5749 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/0.3628, allocations: 0.7598 MB / 0.5757 GB, free: 5.355 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.427e-05/0.3628, allocations: 35.7 kB / 0.5757 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.58e-05/0.3629, allocations: 19.98 kB / 0.5757 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.3631, allocations: 19.98 kB / 0.5758 GB, free: 5.281 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.3632, allocations: 44.31 kB / 0.5758 GB, free: 5.238 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.25e-05/0.3633, allocations: 27.98 kB / 0.5758 GB, free: 5.211 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002162/0.3635, allocations: 183.1 kB / 0.576 GB, free: 5.027 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3635, allocations: 0 / 0.576 GB, free: 5.027 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004327/0.3639, allocations: 80 kB / 0.5761 GB, free: 4.949 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.001676/0.3656, allocations: 1.32 MB / 0.5774 GB, free: 3.578 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008399/0.3664, allocations: 370.5 kB / 0.5777 GB, free: 3.219 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3664, allocations: 5.125 kB / 0.5777 GB, free: 3.215 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000375/0.3668, allocations: 194.6 kB / 0.5779 GB, free: 3.027 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004423/0.3673, allocations: 53.16 kB / 0.578 GB, free: 2.977 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005294/0.3726, allocations: 3.86 MB / 0.5817 GB, free: 14.86 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.373, allocations: 0.8212 MB / 0.5825 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000199/0.3732, allocations: 63.52 kB / 0.5826 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002357/0.3734, allocations: 147.4 kB / 0.5827 GB, free: 13.8 MB / 430.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3734, allocations: 0 / 0.5827 GB, free: 13.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03199/0.4054, allocations: 7.849 MB / 0.5904 GB, free: 6.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.48, allocations: 17.42 kB / 0.5904 GB, free: 6.082 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.4930783759919] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'yMean', 'yRectifiedMean', 'yRootMeanSquare', 'yHarmonicCos', 'yHarmonicSin', 'yHarmonicAbs', 'yHarmonicArg'] 12.647818305005785 12.673362246 12.323630576 Calling exit ...