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.001696/0.001696, allocations: 117.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, allocations: 200.7 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.598/1.598, allocations: 227.4 MB / 247 MB, free: 10.42 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.2412/0.2412, allocations: 46.11 MB / 344.3 MB, free: 11.44 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.002368/0.002368, allocations: 79.86 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3557, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002976/0.3587, allocations: 1.696 MB / 0.5322 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.3597, allocations: 0.5836 MB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.228e-05/0.3598, allocations: 0 / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.3599, allocations: 13.59 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.09e-05/0.36, allocations: 25.62 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003043/0.3603, allocations: 64.31 kB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001691/0.3605, allocations: 117.1 kB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.3607, allocations: 40.52 kB / 0.5331 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.3608, allocations: 52.5 kB / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.3609, allocations: 54.12 kB / 0.5332 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.361, allocations: 10.47 kB / 0.5332 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.234e-05/0.361, allocations: 19.28 kB / 0.5332 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.561e-05/0.3611, allocations: 28.05 kB / 0.5332 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.378e-05/0.3612, allocations: 52.09 kB / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002154/0.3614, allocations: 122.8 kB / 0.5334 GB, free: 11.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.3614, allocations: 0 / 0.5334 GB, free: 11.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3614, allocations: 1.375 kB / 0.5334 GB, free: 11.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.3614, allocations: 0 / 0.5334 GB, free: 11.17 MB / 398.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.0007912/0.3622, allocations: 430.7 kB / 0.5338 GB, free: 10.74 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.3623, allocations: 9.625 kB / 0.5338 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.931e-05/0.3623, allocations: 41.5 kB / 0.5339 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001844/0.3625, allocations: 24 kB / 0.5339 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.3628, allocations: 215.8 kB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.3628, allocations: 8.5 kB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.546e-05/0.3628, allocations: 9.438 kB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.3631, allocations: 91.89 kB / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.3631, allocations: 0 / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.3631, allocations: 5.375 kB / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.3631, allocations: 5.375 kB / 0.5342 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001442/0.3633, allocations: 55.39 kB / 0.5342 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006296/0.3639, allocations: 383.3 kB / 0.5346 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001371/0.364, allocations: 59.03 kB / 0.5347 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.111e-05/0.3641, allocations: 32.98 kB / 0.5347 GB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.3642, allocations: 1.094 kB / 0.5347 GB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.3644, allocations: 99.53 kB / 0.5348 GB, free: 9.824 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.3644, allocations: 0 / 0.5348 GB, free: 9.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003502/0.3647, allocations: 134.1 kB / 0.5349 GB, free: 9.742 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.3648, allocations: 57.42 kB / 0.535 GB, free: 9.676 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.3649, allocations: 142.3 kB / 0.5351 GB, free: 9.555 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.365, allocations: 34.8 kB / 0.5351 GB, free: 9.516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.445e-05/0.365, allocations: 112.8 kB / 0.5353 GB, free: 9.406 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.881e-05/0.3651, allocations: 28.25 kB / 0.5353 GB, free: 9.383 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.275e-05/0.3652, allocations: 39.61 kB / 0.5353 GB, free: 9.348 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3653, allocations: 317.1 kB / 0.5356 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.607e-05/0.3654, allocations: 34.66 kB / 0.5357 GB, free: 9.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.3655, allocations: 79.33 kB / 0.5357 GB, free: 8.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002019/0.3657, allocations: 129 kB / 0.5359 GB, free: 8.812 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3657, allocations: 0 / 0.5359 GB, free: 8.812 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002666/0.366, allocations: 153.4 kB / 0.536 GB, free: 8.715 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.366, allocations: 6.906 kB / 0.536 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.3661, allocations: 2.219 kB / 0.536 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.3661, allocations: 2.281 kB / 0.536 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.3662, allocations: 26.3 kB / 0.536 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.3662, allocations: 2.25 kB / 0.536 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.534e-05/0.3663, allocations: 12.94 kB / 0.5361 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.3663, allocations: 14.94 kB / 0.5361 GB, free: 8.691 MB / 398.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.0001247/0.3665, allocations: 133.1 kB / 0.5362 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.427e-05/0.3665, allocations: 11.86 kB / 0.5362 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.892e-05/0.3665, allocations: 11.59 kB / 0.5362 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.3665, allocations: 5.422 kB / 0.5362 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3666, allocations: 0 / 0.5362 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3666, allocations: 1.281 kB / 0.5362 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.3668, allocations: 199.3 kB / 0.5364 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3668, allocations: 0 / 0.5364 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.755e-05/0.3669, allocations: 25.2 kB / 0.5364 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3669, allocations: 1.562 kB / 0.5364 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.3669, allocations: 0 / 0.5364 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3669, allocations: 1.531 kB / 0.5364 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3669, allocations: 0 / 0.5364 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004442/0.3674, allocations: 172.6 kB / 0.5366 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.186e-05/0.3675, allocations: 89.12 kB / 0.5367 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.3675, allocations: 5.438 kB / 0.5367 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.712e-05/0.3676, allocations: 9.359 kB / 0.5367 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.3676, allocations: 12 kB / 0.5367 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.3676, allocations: 6.734 kB / 0.5367 GB, free: 8.047 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.873e-05/0.3677, allocations: 108.7 kB / 0.5368 GB, free: 7.961 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3677, allocations: 0 / 0.5368 GB, free: 7.961 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.368, allocations: 20.5 kB / 0.5368 GB, free: 7.957 MB / 398.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.0006745/0.3686, allocations: 0.7086 MB / 0.5375 GB, free: 7.297 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002207/0.3689, allocations: 73.16 kB / 0.5376 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3689, allocations: 1.188 kB / 0.5376 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.953e-05/0.369, allocations: 32.17 kB / 0.5376 GB, free: 7.258 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.3692, allocations: 22.42 kB / 0.5377 GB, free: 7.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.3713, allocations: 1.706 MB / 0.5393 GB, free: 5.711 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000451/0.3718, allocations: 0.7025 MB / 0.54 GB, free: 5.004 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.797e-05/0.3718, allocations: 14.69 kB / 0.54 GB, free: 4.996 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.382e-05/0.3719, allocations: 33.42 kB / 0.5401 GB, free: 4.969 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3719, allocations: 4 kB / 0.5401 GB, free: 4.965 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02543/0.3974, allocations: 2.464 MB / 0.5425 GB, free: 3.672 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.13/8.528, allocations: 3.797 kB / 0.5425 GB, free: 3.672 MB / 398.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)