Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 247 MB, free: 10.5 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.2389/0.2389, allocations: 46.11 MB / 344.3 MB, free: 11.48 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.002314/0.002314, allocations: 80.2 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3589, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.00296/0.3619, allocations: 1.662 MB / 0.5322 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002999/0.3622, allocations: 115 kB / 0.5323 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.531e-05/0.3623, allocations: 5.938 kB / 0.5323 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.167e-05/0.3624, allocations: 17.64 kB / 0.5323 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001004/0.3625, allocations: 35.33 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000103/0.3626, allocations: 27.34 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001533/0.3628, allocations: 128.7 kB / 0.5325 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.3629, allocations: 34.61 kB / 0.5326 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.386e-05/0.363, allocations: 45.17 kB / 0.5326 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.001e-05/0.363, allocations: 50.92 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.838e-05/0.3631, allocations: 10.53 kB / 0.5327 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.945e-05/0.3631, allocations: 9.094 kB / 0.5327 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.429e-05/0.3631, allocations: 23.45 kB / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.522e-05/0.3632, allocations: 57.58 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001856/0.3634, allocations: 129.8 kB / 0.5329 GB, free: 11.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3634, allocations: 0 / 0.5329 GB, free: 11.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3634, allocations: 0 / 0.5329 GB, free: 11.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.3634, allocations: 0 / 0.5329 GB, free: 11.61 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005525/0.364, allocations: 416.2 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.364, allocations: 8.469 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.878e-05/0.3641, allocations: 45.23 kB / 0.5333 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.3641, allocations: 10.11 kB / 0.5333 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002039/0.3643, allocations: 199.7 kB / 0.5335 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.3644, allocations: 13.36 kB / 0.5335 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.3644, allocations: 12.66 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000253/0.3647, allocations: 134.8 kB / 0.5337 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.3647, allocations: 13.2 kB / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.3647, allocations: 9.359 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.3647, allocations: 2.75 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/0.3648, allocations: 59.08 kB / 0.5337 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007922/0.3656, allocations: 0.5331 MB / 0.5343 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.3658, allocations: 88.78 kB / 0.5344 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.563e-05/0.3659, allocations: 31.28 kB / 0.5344 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.3659, allocations: 5.312 kB / 0.5344 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.3659, allocations: 39.88 kB / 0.5344 GB, free: 10.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.3659, allocations: 0 / 0.5344 GB, free: 10.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005958/0.3665, allocations: 303.3 kB / 0.5347 GB, free: 9.789 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.475e-05/0.3666, allocations: 78.48 kB / 0.5348 GB, free: 9.695 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.3667, allocations: 121.2 kB / 0.5349 GB, free: 9.582 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.3668, allocations: 27.08 kB / 0.5349 GB, free: 9.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.75e-05/0.3668, allocations: 125.3 kB / 0.5351 GB, free: 9.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.068e-05/0.3669, allocations: 31.66 kB / 0.5351 GB, free: 9.402 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.3669, allocations: 31.86 kB / 0.5351 GB, free: 9.375 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3671, allocations: 324.5 kB / 0.5354 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.255e-05/0.3672, allocations: 19.16 kB / 0.5354 GB, free: 9.043 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.41e-05/0.3673, allocations: 87.14 kB / 0.5355 GB, free: 8.945 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001624/0.3674, allocations: 122.3 kB / 0.5356 GB, free: 8.828 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3674, allocations: 0 / 0.5356 GB, free: 8.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002916/0.3677, allocations: 170.5 kB / 0.5358 GB, free: 8.715 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.3678, allocations: 9.875 kB / 0.5358 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3678, allocations: 6.5 kB / 0.5358 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001968/0.368, allocations: 34.17 kB / 0.5359 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.837e-05/0.3681, allocations: 33.64 kB / 0.5359 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002319/0.3704, allocations: 2.727 MB / 0.5385 GB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.485e-05/0.3705, allocations: 15.45 kB / 0.5386 GB, free: 5.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.3706, allocations: 10.53 kB / 0.5386 GB, free: 5.793 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001346/0.3707, allocations: 132 kB / 0.5387 GB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.66e-05/0.3707, allocations: 7.75 kB / 0.5387 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.3708, allocations: 10.28 kB / 0.5387 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.3708, allocations: 1.312 kB / 0.5387 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3708, allocations: 1.344 kB / 0.5387 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3708, allocations: 0 / 0.5387 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003011/0.3711, allocations: 207.5 kB / 0.5389 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.3711, allocations: 1.375 kB / 0.5389 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.517e-05/0.3712, allocations: 15.47 kB / 0.5389 GB, free: 5.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001223/0.3714, allocations: 47.86 kB / 0.539 GB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.3714, allocations: 5.312 kB / 0.539 GB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002166/0.3735, allocations: 2.73 MB / 0.5416 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3736, allocations: 1.188 kB / 0.5416 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/0.374, allocations: 310.3 kB / 0.5419 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.498e-05/0.374, allocations: 80.2 kB / 0.542 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.374, allocations: 1.25 kB / 0.542 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.562e-05/0.3741, allocations: 9.125 kB / 0.542 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.599e-05/0.3742, allocations: 7.469 kB / 0.542 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.3742, allocations: 2.594 kB / 0.542 GB, free: 2.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.292e-05/0.3743, allocations: 96.16 kB / 0.5421 GB, free: 2.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3743, allocations: 1.094 kB / 0.5421 GB, free: 2.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003977/0.3747, allocations: 39.36 kB / 0.5422 GB, free: 2.023 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006794/0.3754, allocations: 0.8391 MB / 0.543 GB, free: 1.215 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005234/0.3759, allocations: 311.8 kB / 0.5433 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.3759, allocations: 0 / 0.5433 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002835/0.3762, allocations: 259 kB / 0.5435 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005042/0.3767, allocations: 27.39 kB / 0.5436 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.3791, allocations: 1.978 MB / 0.5455 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.3795, allocations: 0.7116 MB / 0.5462 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.824e-05/0.3796, allocations: 4.578 kB / 0.5462 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.784e-05/0.3797, allocations: 31.48 kB / 0.5462 GB, free: 14.07 MB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3797, allocations: 0 / 0.5462 GB, free: 14.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03315/0.4128, allocations: 3.027 MB / 0.5492 GB, free: 12.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.95, allocations: 5.266 kB / 0.5492 GB, free: 12.51 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3_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_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1)