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.001343/0.001343, allocations: 107.9 kB / 17.63 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00126/0.00126, allocations: 210.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, 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.2283/0.2283, allocations: 46.12 MB / 344.2 MB, free: 11.59 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.002219/0.002219, allocations: 89.88 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1339, allocations: 62.44 MB / 480.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.018/0.1519, allocations: 14 MB / 494.2 MB, free: 7.105 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01233/0.1643, allocations: 4.762 MB / 499 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003237/0.1676, allocations: 91.75 kB / 499.1 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009369/0.177, allocations: 4.478 MB / 0.4917 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006975/0.184, allocations: 2.221 MB / 0.4939 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00351/0.1876, allocations: 1.127 MB / 0.495 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.1977, allocations: 6.407 MB / 0.5013 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.257/0.4548, allocations: 5.455 MB / 0.5066 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006661/0.4615, allocations: 2.193 MB / 0.5087 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007515/0.4691, allocations: 2.974 MB / 0.5116 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00336/0.4725, allocations: 494 kB / 0.5121 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007481/0.48, allocations: 1.493 MB / 0.5136 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007965/0.4881, allocations: 2.751 MB / 0.5162 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009159/0.4973, allocations: 3.165 MB / 0.5193 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01668/0.514, allocations: 9.669 MB / 0.5288 GB, free: 9.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/0.514, allocations: 4.312 kB / 0.5288 GB, free: 9.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.514, allocations: 0 / 0.5288 GB, free: 9.578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004534/0.5145, allocations: 0 / 0.5288 GB, free: 9.578 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.02731/0.5418, allocations: 6.97 MB / 0.5356 GB, free: 4.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.5419, allocations: 10.91 kB / 0.5356 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003287/0.5452, allocations: 0.9657 MB / 0.5365 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04031/0.5855, allocations: 6.098 MB / 0.5425 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008643/0.5942, allocations: 4.238 MB / 0.5466 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002407/0.5945, allocations: 339.8 kB / 0.547 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001305/0.5958, allocations: 448.4 kB / 0.5474 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03168/0.6275, allocations: 13.86 MB / 0.5609 GB, free: 88 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002241/0.6278, allocations: 70.33 kB / 0.561 GB, free: 44 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007722/0.6285, allocations: 207.1 kB / 0.5612 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004933/0.6335, allocations: 2.54 MB / 0.5637 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03147/0.665, allocations: 11.74 MB / 0.5751 GB, free: 1.875 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1081/0.7731, allocations: 53.07 MB / 0.627 GB, free: 12.16 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01952/0.7926, allocations: 6.381 MB / 0.6332 GB, free: 5.645 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005265/0.798, allocations: 3.468 MB / 0.6366 GB, free: 2.168 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002143/0.7982, allocations: 37.3 kB / 0.6366 GB, free: 2.145 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.801e-05/0.7983, allocations: 67.8 kB / 0.6367 GB, free: 2.07 MB / 478.1 MB Notification: Performance of pre-optimization done (n=218): time 1.126e-05/0.7983, allocations: 7.984 kB / 0.6367 GB, free: 2.062 MB / 478.1 MB Notification: Performance of matching and sorting (n=260): time 0.09405/0.8924, allocations: 29.47 MB / 0.6655 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001824/0.8926, allocations: 213.9 kB / 0.6657 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01377/0.9064, allocations: 5.968 MB / 0.6715 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007266/0.9072, allocations: 68.75 kB / 0.6716 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004689/0.9119, allocations: 4.037 MB / 0.6755 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002138/0.914, allocations: 0.9834 MB / 0.6765 GB, free: 9.203 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005327/0.9194, allocations: 1.534 MB / 0.678 GB, free: 7.66 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.9196, allocations: 301.1 kB / 0.6783 GB, free: 7.363 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006302/0.9259, allocations: 3.251 MB / 0.6814 GB, free: 4.109 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01109/0.937, allocations: 7.658 MB / 0.6889 GB, free: 10.37 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01833/0.9554, allocations: 11.78 MB / 0.7004 GB, free: 12.96 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001691/0.9556, allocations: 47.98 kB / 0.7005 GB, free: 12.92 MB / 0.545 GB Notification: Performance of matching and sorting (n=974) (initialization): time 0.02794/0.9835, allocations: 12.23 MB / 0.7124 GB, free: 0.6797 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002014/0.9838, allocations: 72 kB / 0.7125 GB, free: 0.6094 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002817/0.9841, allocations: 156 kB / 0.7126 GB, free: 468 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2601/1.244, allocations: 1.76 MB / 0.7143 GB, free: 186.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007942/1.252, allocations: 1.746 MB / 0.716 GB, free: 186.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0164/1.269, allocations: 12.91 MB / 0.7287 GB, free: 181.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007211/1.276, allocations: 463.5 kB / 0.7291 GB, free: 181 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001916/1.278, allocations: 453.3 kB / 0.7295 GB, free: 180.9 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.007381/1.285, allocations: 2.759 MB / 0.7322 GB, free: 179.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001269/1.286, allocations: 0.5005 MB / 0.7327 GB, free: 179.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/1.297, allocations: 6.396 MB / 0.739 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-05/1.297, allocations: 27.05 kB / 0.739 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.007e-05/1.297, allocations: 11.31 kB / 0.739 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.114e-05/1.297, allocations: 19.19 kB / 0.739 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02412/1.321, allocations: 13.84 MB / 0.7525 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.175e-05/1.322, allocations: 0 / 0.7525 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002373/1.324, allocations: 451.8 kB / 0.753 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003705/1.328, allocations: 1.53 MB / 0.7545 GB, free: 171.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003537/1.328, allocations: 52.84 kB / 0.7545 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01309/1.341, allocations: 12.12 MB / 0.7663 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/1.341, allocations: 0 / 0.7663 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01339/1.355, allocations: 10.38 MB / 0.7765 GB, free: 150.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/1.356, allocations: 0.5788 MB / 0.777 GB, free: 149.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000982/1.357, allocations: 44.56 kB / 0.7771 GB, free: 149.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002453/1.36, allocations: 208.9 kB / 0.7773 GB, free: 149.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005751/1.36, allocations: 157.7 kB / 0.7774 GB, free: 149.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/1.36, allocations: 60 kB / 0.7775 GB, free: 149.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005958/1.366, allocations: 3.815 MB / 0.7812 GB, free: 145.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.3e-07/1.366, allocations: 3.312 kB / 0.7812 GB, free: 145.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008209/1.375, allocations: 1.434 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.01336/1.388, allocations: 11.05 MB / 0.7934 GB, free: 132.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01666/1.405, allocations: 10.81 MB / 0.804 GB, free: 122.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/1.405, allocations: 2.141 kB / 0.804 GB, free: 122.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004849/1.41, allocations: 3.309 MB / 0.8072 GB, free: 118.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004981/1.415, allocations: 0.7018 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.1074/1.522, allocations: 83.51 MB / 0.8894 GB, free: 23.91 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004509/1.527, allocations: 4.242 MB / 0.8936 GB, free: 19.64 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005899/1.533, allocations: 2.559 MB / 0.8961 GB, free: 17.07 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00393/1.537, allocations: 2.674 MB / 0.8987 GB, free: 14.4 MB / 0.545 GB Notification: Performance of SimCode: time 2.454e-06/1.537, allocations: 0 / 0.8987 GB, free: 14.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.369/1.906, allocations: 113.3 MB / 1.009 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13/14.91, allocations: 15.33 kB / 1.009 GB, free: 143.9 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1)