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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001257/0.001257, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2226/0.2226, allocations: 46.11 MB / 344.2 MB, free: 11.6 MB / 286.1 MB 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.002316/0.002316, allocations: 84.64 kB / 417.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1036, allocations: 62.45 MB / 480.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003665/0.1073, allocations: 2.312 MB / 482.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.1088, allocations: 0.9036 MB / 483.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.109, allocations: 4 kB / 483.4 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.1091, allocations: 39.47 kB / 483.5 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002078/0.1093, allocations: 67.33 kB / 483.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003781/0.1097, allocations: 183.6 kB / 483.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003977/0.1101, allocations: 383 kB / 484.1 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.1104, allocations: 132.1 kB / 484.2 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.1106, allocations: 151.4 kB / 484.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.1108, allocations: 167.1 kB / 484.5 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.871e-05/0.1109, allocations: 36 kB / 484.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.111, allocations: 51.98 kB / 484.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.721e-05/0.1111, allocations: 87.69 kB / 484.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.1113, allocations: 183 kB / 484.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004046/0.1117, allocations: 394.9 kB / 485.3 MB, free: 108 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.1117, allocations: 4 kB / 485.3 MB, free: 104 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1117, allocations: 0 / 485.3 MB, free: 104 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.1117, allocations: 0 / 485.3 MB, free: 104 kB / 350.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.001129/0.1129, allocations: 0.6537 MB / 485.9 MB, free: 15.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.1129, allocations: 8.031 kB / 485.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.113, allocations: 75.22 kB / 486 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004637/0.1135, allocations: 80.42 kB / 486.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005627/0.1141, allocations: 359.9 kB / 486.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.27e-05/0.1141, allocations: 29.03 kB / 486.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.479e-05/0.1142, allocations: 40.28 kB / 486.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005688/0.1148, allocations: 293.9 kB / 486.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.1148, allocations: 0 / 486.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.921e-05/0.1148, allocations: 12 kB / 486.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.1149, allocations: 8 kB / 486.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004803/0.1153, allocations: 194.5 kB / 487 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.1169, allocations: 0.8699 MB / 487.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004435/0.1173, allocations: 202.8 kB / 488.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002314/0.1176, allocations: 92.81 kB / 488.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.1176, allocations: 11.94 kB / 488.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004489/0.1181, allocations: 223.2 kB / 488.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.743e-06/0.1181, allocations: 0 / 488.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008747/0.119, allocations: 381.6 kB / 488.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.119, allocations: 63.34 kB / 488.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.1193, allocations: 263 kB / 489.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.1194, allocations: 33.7 kB / 489.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.1195, allocations: 200.6 kB / 489.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.923e-05/0.1196, allocations: 94.64 kB / 489.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.1197, allocations: 78.06 kB / 489.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.1199, allocations: 346.7 kB / 489.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.1201, allocations: 88.7 kB / 489.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003345/0.1205, allocations: 232.4 kB / 490.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005843/0.1211, allocations: 340.8 kB / 490.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.1211, allocations: 7.984 kB / 490.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007194/0.1218, allocations: 381.1 kB / 490.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.1218, allocations: 4 kB / 490.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1219, allocations: 16 kB / 490.9 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.1219, allocations: 4 kB / 490.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.1222, allocations: 75.83 kB / 490.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.1222, allocations: 8 kB / 490.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.1224, allocations: 35.77 kB / 491 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.005e-05/0.1225, allocations: 19.94 kB / 491 MB, free: 10.01 MB / 366.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,mean.y_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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.0001887/0.1226, allocations: 169.6 kB / 491.2 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.023e-05/0.1227, allocations: 35.56 kB / 491.2 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007105/0.1234, allocations: 317.2 kB / 491.5 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1234, allocations: 4.141 kB / 491.5 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1234, allocations: 0 / 491.5 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.1235, allocations: 7.969 kB / 491.5 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.1245, allocations: 0.7362 MB / 492.3 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1245, allocations: 0 / 492.3 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.1248, allocations: 47.91 kB / 492.3 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.1248, allocations: 4 kB / 492.3 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.1249, allocations: 7.984 kB / 492.3 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.1249, allocations: 8.031 kB / 492.3 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1249, allocations: 7.938 kB / 492.3 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009587/0.1258, allocations: 0.5188 MB / 492.8 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.587e-05/0.1259, allocations: 104.7 kB / 492.9 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.443e-05/0.126, allocations: 12.06 kB / 493 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001833/0.1262, allocations: 19.92 kB / 493 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.885e-05/0.1263, allocations: 27.95 kB / 493 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/0.1263, allocations: 8 kB / 493 MB, free: 7.879 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001995/0.1265, allocations: 190 kB / 493.2 MB, free: 7.695 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1265, allocations: 3.938 kB / 493.2 MB, free: 7.691 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003736/0.1269, allocations: 71.84 kB / 493.3 MB, free: 7.621 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.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.001259/0.1282, allocations: 1.072 MB / 494.3 MB, free: 6.523 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006512/0.1288, allocations: 276.3 kB / 494.6 MB, free: 6.254 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.1288, allocations: 0 / 494.6 MB, free: 6.254 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.1291, allocations: 132.3 kB / 494.7 MB, free: 6.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.1295, allocations: 51.7 kB / 494.8 MB, free: 6.078 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00435/0.1339, allocations: 3.261 MB / 498.1 MB, free: 2.613 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004635/0.1343, allocations: 0.7998 MB / 498.9 MB, free: 1.785 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.1345, allocations: 47.22 kB / 498.9 MB, free: 1.738 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.1347, allocations: 127.4 kB / 499 MB, free: 1.617 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1347, allocations: 0 / 499 MB, free: 1.617 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03026/0.165, allocations: 5.865 MB / 0.4931 GB, free: 11.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.943/8.108, allocations: 4 kB / 0.4931 GB, free: 11.79 MB / 382.1 MB (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.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1)