Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.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.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001456/0.001457, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001513/0.001513, allocations: 201.2 kB / 18.73 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.474/1.474, allocations: 227.4 MB / 247 MB, free: 10.46 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.233/0.233, allocations: 46.12 MB / 344.3 MB, free: 11.46 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.002473/0.002473, allocations: 79.86 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3706, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01784/0.3885, allocations: 11.95 MB / 0.5423 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.3992, allocations: 4.393 MB / 0.5466 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002272/0.4015, allocations: 74.5 kB / 0.5466 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005883/0.4075, allocations: 2.742 MB / 0.5493 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006167/0.4137, allocations: 2.003 MB / 0.5513 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002796/0.4165, allocations: 1.002 MB / 0.5523 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009144/0.4257, allocations: 5.361 MB / 0.5575 GB, free: 6.133 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006972/0.4327, allocations: 3.447 MB / 0.5609 GB, free: 2.641 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00464/0.4374, allocations: 1.744 MB / 0.5626 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004911/0.4424, allocations: 2.434 MB / 0.5649 GB, free: 14.45 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001772/0.4442, allocations: 368 kB / 0.5653 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00412/0.4483, allocations: 1.4 MB / 0.5667 GB, free: 12.69 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003361/0.4518, allocations: 2.174 MB / 0.5688 GB, free: 10.51 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005248/0.457, allocations: 2.548 MB / 0.5713 GB, free: 7.945 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.4696, allocations: 8.225 MB / 0.5793 GB, free: 15.69 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.4697, allocations: 4 kB / 0.5793 GB, free: 15.68 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4697, allocations: 0 / 0.5793 GB, free: 15.68 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002865/0.47, allocations: 0 / 0.5793 GB, free: 15.68 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.019/0.489, allocations: 6.018 MB / 0.5852 GB, free: 9.586 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.345e-05/0.4891, allocations: 12.03 kB / 0.5852 GB, free: 9.574 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002179/0.4912, allocations: 0.7907 MB / 0.586 GB, free: 8.773 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09429/0.5856, allocations: 7.25 MB / 0.593 GB, free: 1.512 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008592/0.5942, allocations: 3.613 MB / 0.5966 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002938/0.5945, allocations: 262.4 kB / 0.5968 GB, free: 13.58 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001534/0.5961, allocations: 347.8 kB / 0.5972 GB, free: 13.24 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02501/0.6211, allocations: 12.28 MB / 0.6091 GB, free: 148 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001858/0.6213, allocations: 51.56 kB / 0.6092 GB, free: 96 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007661/0.6221, allocations: 167.9 kB / 0.6094 GB, free: 15.93 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004412/0.6265, allocations: 2.377 MB / 0.6117 GB, free: 13.55 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02364/0.6502, allocations: 10.7 MB / 0.6221 GB, free: 2.832 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0931/0.7433, allocations: 48.65 MB / 0.6696 GB, free: 0.7656 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02448/0.7679, allocations: 5.865 MB / 0.6754 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007169/0.7751, allocations: 3.111 MB / 0.6784 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03374/0.8089, allocations: 13.02 MB / 0.6911 GB, free: 10.27 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.719e-05/0.809, allocations: 51.88 kB / 0.6912 GB, free: 10.21 MB / 0.545 GB Notification: Performance of pre-optimization done (n=193): time 5.911e-06/0.8091, allocations: 0 / 0.6912 GB, free: 10.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=254): time 0.4295/1.239, allocations: 38.95 MB / 0.7292 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.169e-05/1.239, allocations: 204.3 kB / 0.7294 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006268/1.245, allocations: 4.397 MB / 0.7337 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006577/1.246, allocations: 61.58 kB / 0.7338 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001832/1.248, allocations: 3.562 MB / 0.7372 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001316/1.249, allocations: 0.9914 MB / 0.7382 GB, free: 156.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001897/1.251, allocations: 1.372 MB / 0.7395 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.633e-05/1.251, allocations: 305.1 kB / 0.7398 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00373/1.255, allocations: 3.117 MB / 0.7429 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005014/1.26, allocations: 7.049 MB / 0.7498 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009678/1.269, allocations: 10.96 MB / 0.7605 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001037/1.269, allocations: 36 kB / 0.7605 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02131/1.291, allocations: 12.68 MB / 0.7729 GB, free: 122.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.119e-05/1.291, allocations: 64.97 kB / 0.7729 GB, free: 122.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001322/1.291, allocations: 136 kB / 0.7731 GB, free: 122.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009449/1.3, allocations: 3.244 MB / 0.7762 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004768/1.305, allocations: 1.548 MB / 0.7778 GB, free: 117.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01911/1.324, allocations: 16.6 MB / 0.794 GB, free: 101.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00634/1.331, allocations: 435.1 kB / 0.7944 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002116/1.333, allocations: 413.5 kB / 0.7948 GB, free: 100.2 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 36 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 804 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,47,54.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005765/1.339, allocations: 2.341 MB / 0.7971 GB, free: 97.88 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001277/1.34, allocations: 421.2 kB / 0.7975 GB, free: 97.46 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/1.353, allocations: 7.526 MB / 0.8048 GB, free: 89.91 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.533e-05/1.353, allocations: 24 kB / 0.8048 GB, free: 89.89 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.011e-05/1.353, allocations: 12 kB / 0.8049 GB, free: 89.88 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.966e-05/1.353, allocations: 11.95 kB / 0.8049 GB, free: 89.86 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02666/1.38, allocations: 15.04 MB / 0.8195 GB, free: 74.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.41e-05/1.38, allocations: 0 / 0.8195 GB, free: 74.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001972/1.382, allocations: 383.4 kB / 0.8199 GB, free: 74.44 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007972/1.39, allocations: 2.923 MB / 0.8228 GB, free: 71.51 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005579/1.391, allocations: 43.59 kB / 0.8228 GB, free: 71.47 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01724/1.408, allocations: 14.83 MB / 0.8373 GB, free: 56.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.408, allocations: 0 / 0.8373 GB, free: 56.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01697/1.425, allocations: 11.51 MB / 0.8485 GB, free: 44.91 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001615/1.427, allocations: 470.1 kB / 0.849 GB, free: 44.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001613/1.428, allocations: 37.5 kB / 0.849 GB, free: 44.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002957/1.431, allocations: 191.7 kB / 0.8492 GB, free: 44.21 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007136/1.432, allocations: 149.8 kB / 0.8493 GB, free: 44.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001969/1.432, allocations: 64 kB / 0.8494 GB, free: 44 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004007/1.436, allocations: 2.742 MB / 0.8521 GB, free: 41.25 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7.42e-07/1.436, allocations: 0 / 0.8521 GB, free: 41.25 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00576/1.442, allocations: 1.301 MB / 0.8534 GB, free: 39.95 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (189): * Single equations (assignments): 185 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,40,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01702/1.459, allocations: 12.16 MB / 0.8652 GB, free: 27.71 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0115/1.47, allocations: 7.87 MB / 0.8729 GB, free: 19.86 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.471, allocations: 0 / 0.8729 GB, free: 19.86 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00446/1.475, allocations: 3.132 MB / 0.876 GB, free: 16.71 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003429/1.478, allocations: 0.4998 MB / 0.8765 GB, free: 16.22 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1134/1.592, allocations: 60.73 MB / 0.9358 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005244/1.597, allocations: 3.662 MB / 0.9393 GB, free: 9.508 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005415/1.603, allocations: 2.176 MB / 0.9415 GB, free: 7.324 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004062/1.607, allocations: 2.21 MB / 0.9436 GB, free: 5.113 MB / 0.6231 GB Notification: Performance of SimCode: time 1.432e-06/1.607, allocations: 4 kB / 0.9436 GB, free: 5.109 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3924/1.999, allocations: 94.26 MB / 1.036 GB, free: 145.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.62/29.62, allocations: 15.86 kB / 1.036 GB, free: 145.2 MB / 0.6231 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1)