Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.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.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 106.6 kB / 17.64 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 222.4 kB / 18.59 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.8 MB, free: 10.54 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.2254/0.2254, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.00232/0.00232, allocations: 79.42 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1069, allocations: 62.46 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003007/0.1099, allocations: 1.687 MB / 481.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.111, allocations: 0.5844 MB / 482.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.496e-05/0.111, allocations: 0 / 482.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.945e-05/0.1111, allocations: 11.88 kB / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.743e-05/0.1112, allocations: 23.8 kB / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002659/0.1115, allocations: 59.81 kB / 482.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001633/0.1117, allocations: 119.7 kB / 482.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001284/0.1118, allocations: 33.09 kB / 482.7 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.1119, allocations: 55.78 kB / 482.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.1121, allocations: 51.7 kB / 482.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.537e-05/0.1121, allocations: 16 kB / 482.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.764e-05/0.1122, allocations: 16 kB / 482.9 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.669e-05/0.1123, allocations: 31.84 kB / 482.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.1124, allocations: 55.72 kB / 482.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.1126, allocations: 119.8 kB / 483.1 MB, free: 2.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.1126, allocations: 0 / 483.1 MB, free: 2.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.427e-06/0.1126, allocations: 3.984 kB / 483.1 MB, free: 2.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.1126, allocations: 0 / 483.1 MB, free: 2.258 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007375/0.1134, allocations: 419 kB / 483.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.1134, allocations: 8.031 kB / 483.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.322e-05/0.1135, allocations: 46.73 kB / 483.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002007/0.1137, allocations: 24.83 kB / 483.6 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.1139, allocations: 208.6 kB / 483.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.114, allocations: 8.375 kB / 483.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.438e-05/0.114, allocations: 19.92 kB / 483.8 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002102/0.1142, allocations: 96.33 kB / 483.9 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1142, allocations: 4 kB / 483.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.1143, allocations: 8 kB / 483.9 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1143, allocations: 0 / 483.9 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.1144, allocations: 47.97 kB / 483.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005983/0.115, allocations: 396.4 kB / 484.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.1152, allocations: 54.56 kB / 484.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.865e-05/0.1153, allocations: 24.98 kB / 484.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.1153, allocations: 0 / 484.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002062/0.1155, allocations: 111.2 kB / 484.5 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.1155, allocations: 0 / 484.5 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003581/0.1159, allocations: 133.4 kB / 484.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.1159, allocations: 55.41 kB / 484.7 MB, free: 448 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.1161, allocations: 141.9 kB / 484.8 MB, free: 296 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.1161, allocations: 29.7 kB / 484.9 MB, free: 260 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.911e-05/0.1162, allocations: 108.4 kB / 485 MB, free: 148 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.597e-05/0.1162, allocations: 35.55 kB / 485 MB, free: 112 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.807e-05/0.1163, allocations: 29.7 kB / 485 MB, free: 76 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1165, allocations: 322.8 kB / 485.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.436e-05/0.1165, allocations: 27.92 kB / 485.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.1167, allocations: 87.66 kB / 485.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002078/0.1169, allocations: 123.6 kB / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1169, allocations: 0 / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002754/0.1172, allocations: 141.3 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.1172, allocations: 4 kB / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1172, allocations: 4 kB / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1172, allocations: 8.219 kB / 485.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.1174, allocations: 19.98 kB / 485.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.1174, allocations: 11.92 kB / 485.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.73e-05/0.1175, allocations: 15.84 kB / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.1175, allocations: 8 kB / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 (mean1.y_last,$PRE.mean1.y_last,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001138/0.1176, allocations: 121.8 kB / 485.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.1176, allocations: 11.84 kB / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.341e-05/0.1177, allocations: 16.64 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.696e-06/0.1177, allocations: 8 kB / 485.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1177, allocations: 0 / 485.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1177, allocations: 0 / 485.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.1179, allocations: 201.6 kB / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1179, allocations: 0 / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.118, allocations: 23.86 kB / 486.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.118, allocations: 96 / 486.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.1181, allocations: 4 kB / 486.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1181, allocations: 0 / 486.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1181, allocations: 7.984 kB / 486.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/0.1184, allocations: 172.9 kB / 486.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.323e-05/0.1185, allocations: 84.95 kB / 486.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.615e-05/0.1185, allocations: 7.984 kB / 486.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.477e-05/0.1186, allocations: 4 kB / 486.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.542e-05/0.1186, allocations: 7.984 kB / 486.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.1186, allocations: 4 kB / 486.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.245e-05/0.1187, allocations: 114.6 kB / 486.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1188, allocations: 4.062 kB / 486.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002256/0.119, allocations: 20.03 kB / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006381/0.1196, allocations: 0.7021 MB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002237/0.1199, allocations: 87.89 kB / 487.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1199, allocations: 0 / 487.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.12, allocations: 39.91 kB / 487.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001956/0.1202, allocations: 12 kB / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.1221, allocations: 1.688 MB / 489.1 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.1225, allocations: 0.708 MB / 489.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.484e-05/0.1225, allocations: 8.5 kB / 489.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.388e-05/0.1226, allocations: 35.42 kB / 489.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1226, allocations: 4.281 kB / 489.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/0.1468, allocations: 2.418 MB / 492.3 MB, free: 8.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.685/7.832, allocations: 9.078 kB / 492.3 MB, free: 8.516 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1)