Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.00133, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002205/0.002205, allocations: 212 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 230.5 MB / 258.2 MB, free: 8.055 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2502/0.2502, allocations: 46.93 MB / 361.6 MB, free: 4.234 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002389/0.002389, allocations: 79.86 kB / 0.497 GB, free: 7.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3916/0.394, allocations: 66.07 MB / 0.5615 GB, free: 4.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003941/0.3979, allocations: 2.338 MB / 0.5638 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.3996, allocations: 0.9202 MB / 0.5647 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.3998, allocations: 11.88 kB / 0.5647 GB, free: 1.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.3999, allocations: 35.53 kB / 0.5647 GB, free: 1.035 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002466/0.4002, allocations: 63.39 kB / 0.5648 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004311/0.4006, allocations: 191.6 kB / 0.565 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004417/0.4011, allocations: 390.9 kB / 0.5653 GB, free: 412 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.4013, allocations: 96.56 kB / 0.5654 GB, free: 312 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002543/0.4015, allocations: 159.3 kB / 0.5656 GB, free: 152 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002475/0.4018, allocations: 163.2 kB / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.094e-05/0.4018, allocations: 36 kB / 0.5658 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.402, allocations: 51.98 kB / 0.5658 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.4021, allocations: 91.62 kB / 0.5659 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.4022, allocations: 175 kB / 0.5661 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004794/0.4027, allocations: 416.4 kB / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4027, allocations: 0 / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4027, allocations: 0 / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.4027, allocations: 0 / 0.5665 GB, free: 15.23 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.001294/0.404, allocations: 0.7267 MB / 0.5672 GB, free: 14.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.4041, allocations: 8.031 kB / 0.5672 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.4042, allocations: 83.25 kB / 0.5673 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004532/0.4046, allocations: 80.61 kB / 0.5673 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005349/0.4052, allocations: 303 kB / 0.5676 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.4052, allocations: 29.03 kB / 0.5677 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.233e-05/0.4052, allocations: 32.36 kB / 0.5677 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000556/0.4058, allocations: 286 kB / 0.568 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.4058, allocations: 7.938 kB / 0.568 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.4059, allocations: 11.98 kB / 0.568 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.4059, allocations: 11.94 kB / 0.568 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004597/0.4063, allocations: 202.5 kB / 0.5682 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.4077, allocations: 0.8275 MB / 0.569 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004131/0.4082, allocations: 182.8 kB / 0.5692 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.4084, allocations: 89.69 kB / 0.5693 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.983e-05/0.4084, allocations: 7.984 kB / 0.5693 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004604/0.4088, allocations: 231.2 kB / 0.5695 GB, free: 12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.563e-06/0.4088, allocations: 0 / 0.5695 GB, free: 12 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008367/0.4097, allocations: 373.3 kB / 0.5698 GB, free: 11.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.4097, allocations: 59.41 kB / 0.5699 GB, free: 11.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002939/0.41, allocations: 268.2 kB / 0.5702 GB, free: 11.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.349e-05/0.4101, allocations: 33.7 kB / 0.5702 GB, free: 11.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.4102, allocations: 192.9 kB / 0.5704 GB, free: 11.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.103e-05/0.4103, allocations: 103.2 kB / 0.5705 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.4104, allocations: 70.06 kB / 0.5705 GB, free: 10.87 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.4106, allocations: 358.7 kB / 0.5709 GB, free: 10.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.4108, allocations: 88.7 kB / 0.571 GB, free: 10.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003502/0.4112, allocations: 222.5 kB / 0.5712 GB, free: 10.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005509/0.4117, allocations: 348.8 kB / 0.5715 GB, free: 9.746 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.4117, allocations: 4 kB / 0.5715 GB, free: 9.742 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006848/0.4124, allocations: 380.8 kB / 0.5719 GB, free: 9.363 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.4124, allocations: 8.469 kB / 0.5719 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.4124, allocations: 8 kB / 0.5719 GB, free: 9.348 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.658e-05/0.4124, allocations: 11.94 kB / 0.5719 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002942/0.4127, allocations: 75.89 kB / 0.572 GB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/0.4128, allocations: 11.94 kB / 0.572 GB, free: 9.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.4129, allocations: 31.83 kB / 0.572 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.413, allocations: 23.94 kB / 0.572 GB, free: 9.195 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.0001923/0.4132, allocations: 161.7 kB / 0.5722 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.663e-05/0.4132, allocations: 35.81 kB / 0.5722 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007121/0.4139, allocations: 320.3 kB / 0.5725 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.4139, allocations: 4 kB / 0.5725 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.4139, allocations: 0 / 0.5725 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.4139, allocations: 3.984 kB / 0.5725 GB, free: 8.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.415, allocations: 0.708 MB / 0.5732 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.415, allocations: 0 / 0.5732 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002418/0.4152, allocations: 47.91 kB / 0.5733 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.4152, allocations: 0 / 0.5733 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/0.4153, allocations: 11.98 kB / 0.5733 GB, free: 7.844 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.4153, allocations: 3.938 kB / 0.5733 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4153, allocations: 0 / 0.5733 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009173/0.4162, allocations: 0.5272 MB / 0.5738 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.499e-05/0.4162, allocations: 31.75 kB / 0.5738 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.4163, allocations: 12.06 kB / 0.5738 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.4164, allocations: 19.86 kB / 0.5739 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.131e-05/0.4165, allocations: 23.95 kB / 0.5739 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.359e-05/0.4165, allocations: 11.98 kB / 0.5739 GB, free: 7.199 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001825/0.4167, allocations: 195.1 kB / 0.5741 GB, free: 7.012 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4167, allocations: 0 / 0.5741 GB, free: 7.012 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003781/0.4171, allocations: 75.78 kB / 0.5742 GB, free: 6.938 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.001208/0.4183, allocations: 1.079 MB / 0.5752 GB, free: 5.832 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005781/0.4189, allocations: 249 kB / 0.5755 GB, free: 5.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4189, allocations: 0 / 0.5755 GB, free: 5.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002476/0.4191, allocations: 131.8 kB / 0.5756 GB, free: 5.461 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.4195, allocations: 45.38 kB / 0.5756 GB, free: 5.414 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/0.424, allocations: 3.245 MB / 0.5788 GB, free: 1.965 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004647/0.4245, allocations: 0.7998 MB / 0.5796 GB, free: 1.137 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001659/0.4246, allocations: 39.25 kB / 0.5796 GB, free: 1.098 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.4248, allocations: 131.4 kB / 0.5797 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4248, allocations: 0 / 0.5797 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0322/0.457, allocations: 6.216 MB / 0.5858 GB, free: 10.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.423/8.88, allocations: 4 kB / 0.5858 GB, free: 10.82 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219736 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.014017273206264] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'yMean', 'yRectifiedMean', 'yRootMeanSquare', 'yHarmonicCos', 'yHarmonicSin', 'yHarmonicAbs', 'yHarmonicArg'] 8.95679003931582 8.984385741 8.576851938 Calling exit ...