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.001646/0.001646, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001584/0.001584, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.2539/0.2539, allocations: 46.12 MB / 344.2 MB, free: 11.54 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.002336/0.002337, allocations: 82.7 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1409, allocations: 62.44 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01466/0.1556, allocations: 11.95 MB / 492.1 MB, free: 9.125 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009972/0.1656, allocations: 4.389 MB / 496.5 MB, free: 4.723 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002351/0.168, allocations: 67.81 kB / 496.6 MB, free: 4.656 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005834/0.1739, allocations: 2.756 MB / 499.4 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005672/0.1796, allocations: 2 MB / 0.4896 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002273/0.1819, allocations: 1.006 MB / 0.4906 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007568/0.1895, allocations: 5.356 MB / 0.4958 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004707/0.1942, allocations: 3.448 MB / 0.4992 GB, free: 6.016 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003247/0.1975, allocations: 1.733 MB / 0.5009 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003628/0.2011, allocations: 2.445 MB / 0.5033 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008919/0.2021, allocations: 368 kB / 0.5036 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003081/0.2051, allocations: 1.397 MB / 0.505 GB, free: 68 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2346/0.4398, allocations: 2.16 MB / 0.5071 GB, free: 18.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005219/0.4451, allocations: 2.552 MB / 0.5096 GB, free: 17.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01375/0.4588, allocations: 7.928 MB / 0.5173 GB, free: 16.19 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.228e-05/0.4589, allocations: 3.25 kB / 0.5173 GB, free: 16.19 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.4589, allocations: 0 / 0.5173 GB, free: 16.19 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004145/0.4593, allocations: 0 / 0.5173 GB, free: 16.19 MB / 382.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.02768/0.487, allocations: 5.881 MB / 0.5231 GB, free: 13.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.079e-05/0.4871, allocations: 9.75 kB / 0.5231 GB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003675/0.4908, allocations: 0.7942 MB / 0.5239 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1112/0.602, allocations: 7.217 MB / 0.5309 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01156/0.6136, allocations: 3.534 MB / 0.5344 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003111/0.6139, allocations: 255.6 kB / 0.5346 GB, free: 9.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002256/0.6162, allocations: 359.2 kB / 0.5349 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03216/0.6484, allocations: 12.29 MB / 0.5469 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001794/0.6486, allocations: 59.16 kB / 0.547 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007709/0.6494, allocations: 162 kB / 0.5472 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005774/0.6552, allocations: 2.38 MB / 0.5495 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03453/0.6897, allocations: 10.7 MB / 0.5599 GB, free: 4.043 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09765/0.7874, allocations: 48.78 MB / 0.6076 GB, free: 2.488 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01828/0.8058, allocations: 5.847 MB / 0.6133 GB, free: 12.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0048/0.8106, allocations: 3.119 MB / 0.6163 GB, free: 9.379 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02199/0.8326, allocations: 13.01 MB / 0.629 GB, free: 12.11 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.134e-05/0.8327, allocations: 55.81 kB / 0.6291 GB, free: 12.05 MB / 478.1 MB Notification: Performance of pre-optimization done (n=193): time 5.611e-06/0.8327, allocations: 0 / 0.6291 GB, free: 12.05 MB / 478.1 MB Notification: Performance of matching and sorting (n=254): time 0.1265/0.9593, allocations: 38.69 MB / 0.6669 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/0.9595, allocations: 209.3 kB / 0.6671 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0081/0.9676, allocations: 4.384 MB / 0.6713 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0008575/0.9685, allocations: 65.69 kB / 0.6714 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.004235/0.9727, allocations: 3.42 MB / 0.6747 GB, free: 13.15 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00283/0.9756, allocations: 0.9409 MB / 0.6757 GB, free: 12.21 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003499/0.9791, allocations: 1.368 MB / 0.677 GB, free: 10.84 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.9793, allocations: 301.1 kB / 0.6773 GB, free: 10.54 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005582/0.9849, allocations: 3.124 MB / 0.6803 GB, free: 7.418 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0101/0.995, allocations: 7.038 MB / 0.6872 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01873/1.014, allocations: 10.97 MB / 0.6979 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001584/1.014, allocations: 43.94 kB / 0.698 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.3375/1.352, allocations: 12.66 MB / 0.7103 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000145/1.352, allocations: 64.66 kB / 0.7104 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003244/1.352, allocations: 136.9 kB / 0.7105 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01082/1.363, allocations: 3.254 MB / 0.7137 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005979/1.369, allocations: 1.535 MB / 0.7152 GB, free: 177 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0205/1.389, allocations: 16.6 MB / 0.7314 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005818/1.395, allocations: 433.7 kB / 0.7318 GB, free: 169.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00119/1.397, allocations: 407.9 kB / 0.7322 GB, free: 169.2 MB / 0.5294 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.004192/1.401, allocations: 2.35 MB / 0.7345 GB, free: 167 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009058/1.402, allocations: 406.8 kB / 0.7349 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01324/1.415, allocations: 7.514 MB / 0.7422 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.173e-05/1.415, allocations: 28 kB / 0.7423 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-05/1.415, allocations: 12 kB / 0.7423 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.466e-05/1.415, allocations: 11.95 kB / 0.7423 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02608/1.441, allocations: 15.2 MB / 0.7571 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.111e-05/1.441, allocations: 4 kB / 0.7571 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001909/1.443, allocations: 380.1 kB / 0.7575 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00773/1.451, allocations: 2.934 MB / 0.7604 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005325/1.451, allocations: 43.84 kB / 0.7604 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01662/1.468, allocations: 14.78 MB / 0.7748 GB, free: 126 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/1.468, allocations: 3.828 kB / 0.7748 GB, free: 126 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01698/1.485, allocations: 11.47 MB / 0.786 GB, free: 114.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/1.487, allocations: 443.8 kB / 0.7864 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001156/1.488, allocations: 48.8 kB / 0.7865 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002393/1.49, allocations: 188.7 kB / 0.7867 GB, free: 113.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006055/1.491, allocations: 145.8 kB / 0.7868 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001944/1.491, allocations: 64 kB / 0.7869 GB, free: 113.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005719/1.497, allocations: 2.746 MB / 0.7896 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.51e-07/1.497, allocations: 0 / 0.7896 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008646/1.505, allocations: 1.293 MB / 0.7908 GB, free: 109.5 MB / 0.5294 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.01799/1.523, allocations: 12.15 MB / 0.8027 GB, free: 97.28 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01604/1.539, allocations: 10.37 MB / 0.8128 GB, free: 86.93 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.539, allocations: 0 / 0.8128 GB, free: 86.93 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004734/1.544, allocations: 3.127 MB / 0.8159 GB, free: 83.79 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003514/1.548, allocations: 0.5129 MB / 0.8164 GB, free: 83.29 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09896/1.647, allocations: 68.18 MB / 0.8829 GB, free: 6.594 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004098/1.651, allocations: 3.666 MB / 0.8865 GB, free: 2.895 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005031/1.656, allocations: 2.173 MB / 0.8886 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004805/1.661, allocations: 2.216 MB / 0.8908 GB, free: 14.55 MB / 0.545 GB Notification: Performance of SimCode: time 1.503e-06/1.661, allocations: 0 / 0.8908 GB, free: 14.55 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4222/2.083, allocations: 98.26 MB / 0.9868 GB, free: 129 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/14.6, allocations: 7.938 kB / 0.9868 GB, free: 129 MB / 0.545 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)