Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.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.FrameTorques2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001583/0.001583, allocations: 102.4 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.00184/0.00184, 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.546/1.546, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2458/0.2458, allocations: 46.12 MB / 344.2 MB, free: 11.52 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.002253/0.002253, allocations: 77.09 kB / 417.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1332, allocations: 62.45 MB / 480.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.02071/0.1539, allocations: 17.83 MB / 498 MB, free: 3.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01312/0.1671, allocations: 5.637 MB / 0.4919 GB, free: 13.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003823/0.1709, allocations: 127.6 kB / 0.492 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01238/0.1834, allocations: 6.269 MB / 0.4981 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00884/0.1923, allocations: 2.885 MB / 0.5009 GB, free: 4.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00457/0.1969, allocations: 1.591 MB / 0.5025 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2697/0.4666, allocations: 9.868 MB / 0.5121 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01271/0.4793, allocations: 8.001 MB / 0.5199 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007069/0.4864, allocations: 3.112 MB / 0.523 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006943/0.4934, allocations: 4.222 MB / 0.5271 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003085/0.4965, allocations: 0.6801 MB / 0.5278 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005991/0.5025, allocations: 1.693 MB / 0.5294 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005712/0.5083, allocations: 3.817 MB / 0.5331 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006808/0.5151, allocations: 4.326 MB / 0.5374 GB, free: 5.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01514/0.5302, allocations: 12.92 MB / 0.55 GB, free: 10.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.987e-06/0.5303, allocations: 0 / 0.55 GB, free: 10.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5303, allocations: 0 / 0.55 GB, free: 10.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000511/0.5308, allocations: 0 / 0.55 GB, free: 10.66 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: 2491 * Number of variables: 2491 Notification: Performance of Generate backend data structure: time 0.02759/0.5584, allocations: 9.398 MB / 0.5592 GB, free: 1.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.5585, allocations: 11.22 kB / 0.5592 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003545/0.562, allocations: 1.192 MB / 0.5603 GB, free: 164 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07237/0.6344, allocations: 10.46 MB / 0.5705 GB, free: 5.676 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01598/0.6505, allocations: 6.696 MB / 0.5771 GB, free: 15.22 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004726/0.651, allocations: 443.7 kB / 0.5775 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002358/0.6533, allocations: 0.6003 MB / 0.5781 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03828/0.6916, allocations: 16.85 MB / 0.5946 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004702/0.6922, allocations: 88.7 kB / 0.5946 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001562/0.6937, allocations: 274.7 kB / 0.5949 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005673/0.6994, allocations: 2.889 MB / 0.5977 GB, free: 9.535 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03317/0.7326, allocations: 13.83 MB / 0.6112 GB, free: 11.96 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09526/0.8279, allocations: 63.73 MB / 0.6735 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01931/0.8473, allocations: 6.377 MB / 0.6797 GB, free: 4.98 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005573/0.8529, allocations: 3.633 MB / 0.6832 GB, free: 1.328 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008541/0.8538, allocations: 0.648 MB / 0.6839 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.372e-05/0.8539, allocations: 72.09 kB / 0.6839 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=231): time 5.41e-06/0.8539, allocations: 0 / 0.6839 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of matching and sorting (n=255): time 0.08494/0.9388, allocations: 27.79 MB / 0.7111 GB, free: 4.496 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001919/0.9391, allocations: 283 kB / 0.7113 GB, free: 4.16 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.484/1.423, allocations: 7.336 MB / 0.7185 GB, free: 186.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001008/1.424, allocations: 69.14 kB / 0.7186 GB, free: 186.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.007489/1.432, allocations: 5.189 MB / 0.7236 GB, free: 183.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002241/1.434, allocations: 0.9952 MB / 0.7246 GB, free: 182.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003345/1.437, allocations: 1.697 MB / 0.7263 GB, free: 182 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.892e-05/1.437, allocations: 309.5 kB / 0.7266 GB, free: 181.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005115/1.443, allocations: 2.991 MB / 0.7295 GB, free: 180.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007021/1.45, allocations: 8.15 MB / 0.7374 GB, free: 172.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01239/1.462, allocations: 12.08 MB / 0.7492 GB, free: 162.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002255/1.462, allocations: 51.22 kB / 0.7493 GB, free: 162.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1090) (initialization): time 0.02213/1.484, allocations: 11.88 MB / 0.7609 GB, free: 158.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001712/1.485, allocations: 81.53 kB / 0.761 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002707/1.485, allocations: 178.8 kB / 0.7611 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00327/1.488, allocations: 1.294 MB / 0.7624 GB, free: 158 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006613/1.495, allocations: 1.914 MB / 0.7643 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/1.507, allocations: 13.7 MB / 0.7776 GB, free: 147.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0094/1.517, allocations: 466.8 kB / 0.7781 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001721/1.519, allocations: 0.4994 MB / 0.7786 GB, free: 146.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 827 * Number of states: 0 () * Number of discrete variables: 74 (frameTorque4.arrow.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque3.arrow.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque2.arrow.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[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 (1010): * Single equations (assignments): 1003 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,14,100.0%), (1,14,100.0%), (1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008993/1.528, allocations: 3.403 MB / 0.7819 GB, free: 143.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001697/1.529, allocations: 0.6131 MB / 0.7825 GB, free: 142.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00749/1.537, allocations: 4.973 MB / 0.7874 GB, free: 138 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-05/1.537, allocations: 36.58 kB / 0.7874 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.216e-05/1.537, allocations: 12 kB / 0.7874 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.672e-05/1.537, allocations: 15.89 kB / 0.7874 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02213/1.559, allocations: 12.89 MB / 0.8 GB, free: 125 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/1.559, allocations: 7.938 kB / 0.8 GB, free: 125 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001817/1.561, allocations: 395.4 kB / 0.8004 GB, free: 124.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002383/1.563, allocations: 0.9996 MB / 0.8014 GB, free: 123.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002271/1.564, allocations: 44 kB / 0.8014 GB, free: 123.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00982/1.573, allocations: 12.61 MB / 0.8137 GB, free: 110.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.573, allocations: 2.578 kB / 0.8137 GB, free: 110.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009502/1.583, allocations: 8.302 MB / 0.8218 GB, free: 102 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001997/1.585, allocations: 0.6764 MB / 0.8225 GB, free: 101.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001/1.586, allocations: 45.56 kB / 0.8225 GB, free: 101.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002265/1.588, allocations: 139.8 kB / 0.8227 GB, free: 101.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003815/1.589, allocations: 157.7 kB / 0.8228 GB, free: 101 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/1.589, allocations: 66.45 kB / 0.8229 GB, free: 100.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006286/1.595, allocations: 4.706 MB / 0.8275 GB, free: 96.24 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.91e-07/1.595, allocations: 0 / 0.8275 GB, free: 96.24 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007829/1.603, allocations: 1.609 MB / 0.829 GB, free: 94.64 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,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 (195): * Single equations (assignments): 188 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,11,100.0%), (1,11,100.0%), (1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00976/1.613, allocations: 8.984 MB / 0.8378 GB, free: 85.57 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01248/1.625, allocations: 8.91 MB / 0.8465 GB, free: 76.67 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/1.625, allocations: 4 kB / 0.8465 GB, free: 76.67 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002997/1.628, allocations: 2.686 MB / 0.8492 GB, free: 73.94 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00764/1.636, allocations: 0.9896 MB / 0.8501 GB, free: 72.97 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3834/2.019, allocations: 98.09 MB / 0.9459 GB, free: 180 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006687/2.026, allocations: 5.233 MB / 0.951 GB, free: 178.2 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006733/2.033, allocations: 2.691 MB / 0.9536 GB, free: 178.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005376/2.038, allocations: 3.487 MB / 0.9571 GB, free: 175.3 MB / 0.5607 GB Notification: Performance of SimCode: time 1.543e-06/2.038, allocations: 0 / 0.9571 GB, free: 175.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1814/2.22, allocations: 132.3 MB / 1.086 GB, free: 54.61 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.75/15.97, allocations: 4.062 kB / 1.086 GB, free: 54.61 MB / 0.5607 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1)