Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.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.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001367/0.001367, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001547/0.001547, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.24/0.24, allocations: 46.12 MB / 344.2 MB, free: 11.55 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.002183/0.002183, allocations: 87.09 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.125, allocations: 62.45 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.01769/0.1428, allocations: 13.99 MB / 494.2 MB, free: 7.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.1534, allocations: 4.762 MB / 499 MB, free: 2.293 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002904/0.1563, allocations: 91.75 kB / 499.1 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009802/0.1662, allocations: 4.478 MB / 0.4917 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006607/0.1729, allocations: 2.225 MB / 0.4939 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003131/0.176, allocations: 1.123 MB / 0.495 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01033/0.1864, allocations: 6.408 MB / 0.5013 GB, free: 3.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2386/0.425, allocations: 5.443 MB / 0.5066 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004821/0.4299, allocations: 2.202 MB / 0.5087 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005829/0.4357, allocations: 2.971 MB / 0.5116 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002292/0.4381, allocations: 493.4 kB / 0.5121 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004489/0.4426, allocations: 1.497 MB / 0.5136 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004743/0.4473, allocations: 2.748 MB / 0.5162 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006104/0.4535, allocations: 3.166 MB / 0.5193 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01394/0.4674, allocations: 9.667 MB / 0.5288 GB, free: 9.559 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.4675, allocations: 0.75 kB / 0.5288 GB, free: 9.559 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4675, allocations: 0 / 0.5288 GB, free: 9.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004342/0.4679, allocations: 3.625 kB / 0.5288 GB, free: 9.559 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: 2021 * Number of variables: 2021 Notification: Performance of Generate backend data structure: time 0.01961/0.4876, allocations: 6.975 MB / 0.5356 GB, free: 4.957 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.4876, allocations: 9.438 kB / 0.5356 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002256/0.4899, allocations: 0.9659 MB / 0.5365 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03659/0.5265, allocations: 6.093 MB / 0.5425 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009311/0.5358, allocations: 4.242 MB / 0.5466 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002514/0.5361, allocations: 336.5 kB / 0.547 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00159/0.5377, allocations: 453.2 kB / 0.5474 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03083/0.5686, allocations: 13.86 MB / 0.5609 GB, free: 52 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002111/0.5688, allocations: 58.11 kB / 0.561 GB, free: 20 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008995/0.5697, allocations: 216.4 kB / 0.5612 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004904/0.5746, allocations: 2.542 MB / 0.5637 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02757/0.6022, allocations: 11.75 MB / 0.5751 GB, free: 1.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07512/0.6774, allocations: 53.07 MB / 0.627 GB, free: 12.14 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01844/0.6959, allocations: 6.382 MB / 0.6332 GB, free: 5.621 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004773/0.7007, allocations: 3.466 MB / 0.6366 GB, free: 2.145 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001288/0.7008, allocations: 43.38 kB / 0.6366 GB, free: 2.113 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.389e-05/0.7009, allocations: 58.5 kB / 0.6367 GB, free: 2.051 MB / 478.1 MB Notification: Performance of pre-optimization done (n=218): time 5.3e-06/0.7009, allocations: 0 / 0.6367 GB, free: 2.051 MB / 478.1 MB Notification: Performance of matching and sorting (n=260): time 0.08715/0.7881, allocations: 29.48 MB / 0.6655 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/0.7883, allocations: 208.5 kB / 0.6657 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01111/0.7994, allocations: 5.967 MB / 0.6715 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000753/0.8002, allocations: 65.53 kB / 0.6716 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004008/0.8042, allocations: 4.048 MB / 0.6755 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00168/0.8059, allocations: 0.9873 MB / 0.6765 GB, free: 9.176 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002536/0.8085, allocations: 1.531 MB / 0.678 GB, free: 7.637 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.8086, allocations: 301.1 kB / 0.6783 GB, free: 7.34 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005361/0.814, allocations: 3.255 MB / 0.6814 GB, free: 4.082 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01009/0.8241, allocations: 7.649 MB / 0.6889 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0167/0.8408, allocations: 11.79 MB / 0.7004 GB, free: 12.94 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002002/0.8411, allocations: 48 kB / 0.7005 GB, free: 12.89 MB / 0.545 GB Notification: Performance of matching and sorting (n=974) (initialization): time 0.02806/0.8691, allocations: 12.23 MB / 0.7124 GB, free: 0.6523 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001638/0.8694, allocations: 74.03 kB / 0.7125 GB, free: 0.582 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002171/0.8696, allocations: 155.8 kB / 0.7126 GB, free: 444 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2786/1.148, allocations: 1.76 MB / 0.7143 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007043/1.155, allocations: 1.745 MB / 0.716 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01805/1.173, allocations: 12.91 MB / 0.7287 GB, free: 181.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00769/1.181, allocations: 460.9 kB / 0.7291 GB, free: 181.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002351/1.183, allocations: 458.6 kB / 0.7295 GB, free: 181 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 703 * Number of states: 0 () * Number of discrete variables: 62 (frameTorque2.torqueArrow.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (902): * Single equations (assignments): 897 * 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 {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01013/1.194, allocations: 2.759 MB / 0.7322 GB, free: 179.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001997/1.196, allocations: 0.5016 MB / 0.7327 GB, free: 179.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01367/1.209, allocations: 6.396 MB / 0.739 GB, free: 177.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.06e-05/1.209, allocations: 26.16 kB / 0.739 GB, free: 177.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-05/1.21, allocations: 7.719 kB / 0.739 GB, free: 177.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.728e-05/1.21, allocations: 15.78 kB / 0.739 GB, free: 177.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02513/1.235, allocations: 13.85 MB / 0.7525 GB, free: 172.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/1.235, allocations: 4 kB / 0.7525 GB, free: 172.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002161/1.237, allocations: 448.4 kB / 0.753 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003491/1.24, allocations: 1.531 MB / 0.7545 GB, free: 171.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003222/1.241, allocations: 44 kB / 0.7545 GB, free: 171.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0126/1.253, allocations: 12.12 MB / 0.7663 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.253, allocations: 3.156 kB / 0.7663 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0129/1.266, allocations: 10.39 MB / 0.7765 GB, free: 150.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001474/1.268, allocations: 0.5757 MB / 0.777 GB, free: 149.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001184/1.269, allocations: 44.88 kB / 0.7771 GB, free: 149.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00271/1.272, allocations: 207.7 kB / 0.7773 GB, free: 149.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004915/1.272, allocations: 164.1 kB / 0.7774 GB, free: 149.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001852/1.273, allocations: 60 kB / 0.7775 GB, free: 149.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004752/1.277, allocations: 3.815 MB / 0.7812 GB, free: 145.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.01e-07/1.277, allocations: 0 / 0.7812 GB, free: 145.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006838/1.284, allocations: 1.429 MB / 0.7826 GB, free: 144 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (202): * Single equations (assignments): 197 * 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 {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01281/1.297, allocations: 11.06 MB / 0.7934 GB, free: 132.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0149/1.312, allocations: 10.8 MB / 0.804 GB, free: 122.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/1.312, allocations: 1.641 kB / 0.804 GB, free: 122.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004747/1.317, allocations: 3.314 MB / 0.8072 GB, free: 118.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004191/1.321, allocations: 0.6985 MB / 0.8079 GB, free: 118.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1102/1.431, allocations: 83.52 MB / 0.8894 GB, free: 23.85 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008335/1.44, allocations: 4.238 MB / 0.8936 GB, free: 19.59 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006657/1.446, allocations: 2.559 MB / 0.8961 GB, free: 17.02 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004318/1.451, allocations: 2.674 MB / 0.8987 GB, free: 14.34 MB / 0.545 GB Notification: Performance of SimCode: time 1.052e-06/1.451, allocations: 4 kB / 0.8987 GB, free: 14.34 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4043/1.855, allocations: 113.3 MB / 1.009 GB, free: 145.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/14.95, allocations: 8.062 kB / 1.009 GB, free: 145.6 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_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_MultiBody_Forces_FrameForcesAndTorques2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1)