Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.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.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001383/0.001383, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001325/0.001325, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2255/0.2255, allocations: 46.12 MB / 344.2 MB, free: 11.57 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.002224/0.002224, allocations: 82.39 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1337, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.0182/0.1519, allocations: 14.96 MB / 495.2 MB, free: 6.117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01117/0.1631, allocations: 5.022 MB / 0.4885 GB, free: 1.082 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002709/0.1659, allocations: 103.7 kB / 0.4886 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007907/0.1738, allocations: 4.003 MB / 0.4925 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006633/0.1805, allocations: 2.311 MB / 0.4947 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002808/0.1833, allocations: 1.17 MB / 0.4959 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0101/0.1935, allocations: 6.566 MB / 0.5023 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2529/0.4464, allocations: 4.691 MB / 0.5069 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005406/0.4518, allocations: 2.21 MB / 0.509 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006785/0.4586, allocations: 3.016 MB / 0.512 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001982/0.4606, allocations: 457.5 kB / 0.5124 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004072/0.4647, allocations: 1.531 MB / 0.5139 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004186/0.4689, allocations: 2.655 MB / 0.5165 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005265/0.4742, allocations: 3.135 MB / 0.5196 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01159/0.4858, allocations: 9.451 MB / 0.5288 GB, free: 9.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.4859, allocations: 2.219 kB / 0.5288 GB, free: 9.441 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4859, allocations: 0 / 0.5288 GB, free: 9.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003021/0.4862, allocations: 2.25 kB / 0.5288 GB, free: 9.441 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: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.02155/0.5077, allocations: 6.997 MB / 0.5356 GB, free: 4.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.5078, allocations: 10.75 kB / 0.5356 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001988/0.5098, allocations: 0.9207 MB / 0.5365 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1686/0.6784, allocations: 12.5 MB / 0.5487 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01363/0.6921, allocations: 4.473 MB / 0.5531 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004012/0.6926, allocations: 313 kB / 0.5534 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002234/0.6948, allocations: 433 kB / 0.5538 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03438/0.7292, allocations: 13.68 MB / 0.5672 GB, free: 9.145 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004292/0.7297, allocations: 63.98 kB / 0.5672 GB, free: 9.105 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002284/0.732, allocations: 202.6 kB / 0.5674 GB, free: 8.953 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00543/0.7375, allocations: 2.523 MB / 0.5699 GB, free: 6.469 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02996/0.7675, allocations: 11.55 MB / 0.5812 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08703/0.8546, allocations: 53.08 MB / 0.633 GB, free: 5.238 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01829/0.8729, allocations: 5.806 MB / 0.6387 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005638/0.8786, allocations: 3.383 MB / 0.642 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02991/0.9085, allocations: 14.87 MB / 0.6565 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.857e-05/0.9086, allocations: 59.36 kB / 0.6566 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=227): time 7.243e-06/0.9087, allocations: 0 / 0.6566 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=264): time 0.09887/1.008, allocations: 26.22 MB / 0.6822 GB, free: 2.25 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001801/1.008, allocations: 260.3 kB / 0.6824 GB, free: 1.941 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01171/1.019, allocations: 5.074 MB / 0.6874 GB, free: 12.88 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007216/1.02, allocations: 65.7 kB / 0.6874 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004751/1.025, allocations: 3.949 MB / 0.6913 GB, free: 8.855 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001973/1.027, allocations: 0.988 MB / 0.6923 GB, free: 7.875 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005296/1.032, allocations: 1.464 MB / 0.6937 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000153/1.033, allocations: 301.1 kB / 0.694 GB, free: 6.105 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005804/1.038, allocations: 2.732 MB / 0.6966 GB, free: 3.371 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01107/1.049, allocations: 7.085 MB / 0.7036 GB, free: 10.23 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.271/1.321, allocations: 10.65 MB / 0.714 GB, free: 186.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00019/1.321, allocations: 43.5 kB / 0.714 GB, free: 186.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.0274/1.348, allocations: 10.12 MB / 0.7239 GB, free: 184.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001547/1.348, allocations: 70.95 kB / 0.7239 GB, free: 184.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003293/1.349, allocations: 151.8 kB / 0.7241 GB, free: 184.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002426/1.351, allocations: 0.7153 MB / 0.7248 GB, free: 184.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007504/1.359, allocations: 1.768 MB / 0.7265 GB, free: 184.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007883/1.367, allocations: 6.855 MB / 0.7332 GB, free: 179.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007051/1.374, allocations: 404.6 kB / 0.7336 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001231/1.375, allocations: 444.1 kB / 0.734 GB, free: 179.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * Number of states: 0 () * Number of discrete variables: 57 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[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],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (913): * Single equations (assignments): 908 * Array equations: 3 * 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,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005265/1.38, allocations: 2.639 MB / 0.7366 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008952/1.381, allocations: 470.6 kB / 0.737 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006502/1.388, allocations: 4.386 MB / 0.7413 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.187e-05/1.388, allocations: 26.44 kB / 0.7414 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/1.388, allocations: 2.75 kB / 0.7414 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.231e-05/1.388, allocations: 13.66 kB / 0.7414 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01742/1.405, allocations: 10.84 MB / 0.752 GB, free: 172.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/1.405, allocations: 6.422 kB / 0.752 GB, free: 172.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002426/1.408, allocations: 0.489 MB / 0.7524 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001264/1.409, allocations: 495.5 kB / 0.7529 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000233/1.409, allocations: 48.44 kB / 0.753 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005477/1.415, allocations: 6.213 MB / 0.759 GB, free: 166.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.415, allocations: 0.9844 kB / 0.759 GB, free: 166.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01035/1.425, allocations: 7.63 MB / 0.7665 GB, free: 159.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00154/1.427, allocations: 498.3 kB / 0.767 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00112/1.428, allocations: 41.25 kB / 0.767 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002354/1.43, allocations: 153.7 kB / 0.7671 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004344/1.431, allocations: 149 kB / 0.7673 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001735/1.431, allocations: 72.72 kB / 0.7674 GB, free: 158.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004771/1.436, allocations: 3.175 MB / 0.7705 GB, free: 156.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.41e-07/1.436, allocations: 4.562 kB / 0.7705 GB, free: 156.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007377/1.443, allocations: 1.284 MB / 0.7717 GB, free: 154.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (224): * Single equations (assignments): 219 * Array equations: 3 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009289/1.452, allocations: 8.328 MB / 0.7798 GB, free: 146.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01596/1.468, allocations: 9.479 MB / 0.7891 GB, free: 137.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/1.468, allocations: 0 / 0.7891 GB, free: 137.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003446/1.472, allocations: 2.38 MB / 0.7914 GB, free: 134.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004659/1.477, allocations: 0.6227 MB / 0.792 GB, free: 134.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08784/1.564, allocations: 69.5 MB / 0.8599 GB, free: 55.04 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00524/1.57, allocations: 4.097 MB / 0.8639 GB, free: 50.91 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00611/1.576, allocations: 2.369 MB / 0.8662 GB, free: 48.53 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003838/1.58, allocations: 2.62 MB / 0.8688 GB, free: 45.91 MB / 0.545 GB Notification: Performance of SimCode: time 9.92e-07/1.58, allocations: 2.297 kB / 0.8688 GB, free: 45.91 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3402/1.92, allocations: 96.32 MB / 0.9628 GB, free: 162.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/14.84, allocations: 10.48 kB / 0.9629 GB, free: 162.4 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithMass.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1)