Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001828/0.001828, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002063/0.002063, allocations: 205.2 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.481/1.481, allocations: 227.4 MB / 247 MB, free: 10.43 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.2385/0.2385, 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.002365/0.002365, allocations: 79.86 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3539, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004311/0.3582, allocations: 2.849 MB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.3599, allocations: 0.7724 MB / 0.5341 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003083/0.3603, allocations: 10.81 kB / 0.5341 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002249/0.3605, allocations: 54.27 kB / 0.5342 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004054/0.361, allocations: 128.6 kB / 0.5343 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004038/0.3614, allocations: 109.5 kB / 0.5344 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005281/0.3619, allocations: 435.2 kB / 0.5348 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.3622, allocations: 146.2 kB / 0.535 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003167/0.3625, allocations: 167 kB / 0.5351 GB, free: 9.793 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/0.3628, allocations: 179.7 kB / 0.5353 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.315e-05/0.3628, allocations: 31.5 kB / 0.5353 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001172/0.363, allocations: 39.61 kB / 0.5354 GB, free: 9.668 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.02e-05/0.3631, allocations: 78.73 kB / 0.5354 GB, free: 9.602 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.3633, allocations: 204.1 kB / 0.5356 GB, free: 9.469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005353/0.3638, allocations: 437.5 kB / 0.5361 GB, free: 9.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3638, allocations: 0 / 0.5361 GB, free: 9.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3638, allocations: 1.188 kB / 0.5361 GB, free: 9.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.3639, allocations: 7.875 kB / 0.5361 GB, free: 9.152 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0009978/0.3649, allocations: 0.66 MB / 0.5367 GB, free: 8.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.3649, allocations: 9.281 kB / 0.5367 GB, free: 8.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.802e-05/0.365, allocations: 82.86 kB / 0.5368 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002631/0.3653, allocations: 57.44 kB / 0.5369 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004316/0.3657, allocations: 279.6 kB / 0.5371 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.1e-05/0.3658, allocations: 31.09 kB / 0.5371 GB, free: 8.172 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.882e-05/0.3658, allocations: 50.62 kB / 0.5372 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006415/0.3665, allocations: 390.3 kB / 0.5376 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.3665, allocations: 10.16 kB / 0.5376 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.591e-05/0.3666, allocations: 16.41 kB / 0.5376 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.3666, allocations: 9.156 kB / 0.5376 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.367, allocations: 220.2 kB / 0.5378 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002469/0.3695, allocations: 1.723 MB / 0.5395 GB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004843/0.37, allocations: 265.8 kB / 0.5398 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.3702, allocations: 95.09 kB / 0.5398 GB, free: 5.879 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.3703, allocations: 3.031 kB / 0.5398 GB, free: 5.879 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.3703, allocations: 46.25 kB / 0.5399 GB, free: 5.828 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.204e-06/0.3703, allocations: 0 / 0.5399 GB, free: 5.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.000726/0.371, allocations: 269.5 kB / 0.5401 GB, free: 5.684 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.3712, allocations: 217.1 kB / 0.5404 GB, free: 5.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.3715, allocations: 280.1 kB / 0.5406 GB, free: 5.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.3716, allocations: 32.05 kB / 0.5406 GB, free: 5.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.3718, allocations: 244.9 kB / 0.5409 GB, free: 4.969 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.516e-05/0.3719, allocations: 117 kB / 0.541 GB, free: 4.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.372, allocations: 99.7 kB / 0.5411 GB, free: 4.801 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.3722, allocations: 350.8 kB / 0.5414 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.3724, allocations: 100.2 kB / 0.5415 GB, free: 4.414 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005246/0.3729, allocations: 421.4 kB / 0.5419 GB, free: 3.922 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007788/0.3737, allocations: 0.5769 MB / 0.5425 GB, free: 3.328 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.3737, allocations: 2.844 kB / 0.5425 GB, free: 3.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000937/0.3747, allocations: 0.528 MB / 0.543 GB, free: 3.051 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/0.3747, allocations: 10.84 kB / 0.543 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/0.3747, allocations: 14.91 kB / 0.543 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.138e-05/0.3748, allocations: 16.19 kB / 0.543 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004411/0.3752, allocations: 152.7 kB / 0.5432 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.511e-05/0.3753, allocations: 19.19 kB / 0.5432 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000353/0.3756, allocations: 66.48 kB / 0.5433 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.3757, allocations: 32.31 kB / 0.5433 GB, free: 2.957 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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.0002363/0.3759, allocations: 184.2 kB / 0.5435 GB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000155/0.3761, allocations: 32.06 kB / 0.5435 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.218e-05/0.3762, allocations: 38.11 kB / 0.5435 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3762, allocations: 4.719 kB / 0.5435 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.3762, allocations: 2.406 kB / 0.5436 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.3762, allocations: 6.297 kB / 0.5436 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00139/0.3776, allocations: 0.6554 MB / 0.5442 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.3776, allocations: 3.625 kB / 0.5442 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004355/0.3781, allocations: 88.55 kB / 0.5443 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-06/0.3781, allocations: 2.594 kB / 0.5443 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.3781, allocations: 13.33 kB / 0.5443 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.999e-06/0.3781, allocations: 11.66 kB / 0.5443 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3781, allocations: 2.406 kB / 0.5443 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008573/0.379, allocations: 0.8372 MB / 0.5451 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.3791, allocations: 111.9 kB / 0.5452 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.814e-05/0.3792, allocations: 13.03 kB / 0.5453 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003527/0.3795, allocations: 12.67 kB / 0.5453 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.522e-05/0.3796, allocations: 26.12 kB / 0.5453 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.3796, allocations: 7.812 kB / 0.5453 GB, free: 1.258 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001929/0.3798, allocations: 184.8 kB / 0.5455 GB, free: 1.129 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3799, allocations: 4 kB / 0.5455 GB, free: 1.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008132/0.3807, allocations: 98.92 kB / 0.5456 GB, free: 1.105 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * 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 (26): * Single equations (assignments): 26 * 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 Backend phase and start with SimCode phase: time 0.001247/0.3819, allocations: 1.385 MB / 0.5469 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006459/0.3826, allocations: 289.7 kB / 0.5472 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3826, allocations: 4.125 kB / 0.5472 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.3828, allocations: 93.61 kB / 0.5473 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.3838, allocations: 81.5 kB / 0.5474 GB, free: 15.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006512/0.3904, allocations: 4.954 MB / 0.5522 GB, free: 10.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/0.3909, allocations: 0.8028 MB / 0.553 GB, free: 9.406 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001865/0.3911, allocations: 47.25 kB / 0.553 GB, free: 9.355 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.3913, allocations: 115.4 kB / 0.5531 GB, free: 9.242 MB / 414.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3913, allocations: 0 / 0.5531 GB, free: 9.242 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03298/0.4243, allocations: 6.651 MB / 0.5596 GB, free: 2.727 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.099/9.523, allocations: 11.31 kB / 0.5597 GB, free: 2.719 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2_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_Directions2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1)