Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.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.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001447/0.001447, 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.00152/0.00152, 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.483/1.483, allocations: 227.4 MB / 246.8 MB, free: 10.58 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.2784/0.2784, allocations: 46.11 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.002215/0.002216, allocations: 76.41 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1226, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3): time 0.01606/0.1387, allocations: 13.65 MB / 493.9 MB, free: 7.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009932/0.1487, allocations: 4.723 MB / 498.6 MB, free: 2.691 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002134/0.1509, allocations: 95.69 kB / 498.7 MB, free: 2.598 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008512/0.1594, allocations: 4.455 MB / 0.4913 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006472/0.1659, allocations: 2.194 MB / 0.4935 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003716/0.1697, allocations: 1.15 MB / 0.4946 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.1807, allocations: 6.345 MB / 0.5008 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2467/0.4274, allocations: 5.545 MB / 0.5062 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005582/0.4331, allocations: 2.225 MB / 0.5084 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006682/0.4398, allocations: 2.932 MB / 0.5113 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003146/0.443, allocations: 496.8 kB / 0.5117 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006336/0.4493, allocations: 1.495 MB / 0.5132 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00808/0.4575, allocations: 2.686 MB / 0.5158 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009364/0.4669, allocations: 3.125 MB / 0.5189 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01386/0.4808, allocations: 9.559 MB / 0.5282 GB, free: 9.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.4808, allocations: 0.7188 kB / 0.5282 GB, free: 9.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4808, allocations: 0 / 0.5282 GB, free: 9.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003833/0.4812, allocations: 0.8125 kB / 0.5282 GB, free: 9.957 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: 1985 * Number of variables: 1985 Notification: Performance of Generate backend data structure: time 0.02123/0.5024, allocations: 6.864 MB / 0.5349 GB, free: 5.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.5025, allocations: 13.38 kB / 0.5349 GB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003825/0.5063, allocations: 0.9454 MB / 0.5358 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03937/0.5457, allocations: 6.056 MB / 0.5418 GB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01002/0.5558, allocations: 4.21 MB / 0.5459 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003347/0.5562, allocations: 335.8 kB / 0.5462 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002281/0.5585, allocations: 444.1 kB / 0.5466 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03733/0.5958, allocations: 13.87 MB / 0.5601 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002402/0.5961, allocations: 60.17 kB / 0.5602 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007592/0.5969, allocations: 210.3 kB / 0.5604 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005095/0.602, allocations: 2.535 MB / 0.5629 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0298/0.6318, allocations: 11.88 MB / 0.5745 GB, free: 2.527 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08669/0.7185, allocations: 51.55 MB / 0.6248 GB, free: 14.38 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01808/0.7366, allocations: 6.105 MB / 0.6308 GB, free: 8.145 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006544/0.7432, allocations: 3.735 MB / 0.6344 GB, free: 4.402 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02675/0.77, allocations: 12.81 MB / 0.6469 GB, free: 7.512 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.757e-05/0.7702, allocations: 59.19 kB / 0.647 GB, free: 7.449 MB / 494.1 MB Notification: Performance of pre-optimization done (n=228): time 1.071e-05/0.7702, allocations: 3.984 kB / 0.647 GB, free: 7.445 MB / 494.1 MB Notification: Performance of matching and sorting (n=270): time 0.09231/0.8625, allocations: 27.67 MB / 0.674 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001783/0.8627, allocations: 212.7 kB / 0.6742 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01184/0.8746, allocations: 4.958 MB / 0.6791 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008501/0.8755, allocations: 73.55 kB / 0.6791 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004018/0.8795, allocations: 3.844 MB / 0.6829 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001947/0.8815, allocations: 1.004 MB / 0.6839 GB, free: 1.523 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004644/0.8861, allocations: 1.446 MB / 0.6853 GB, free: 72 kB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001651/0.8863, allocations: 301.1 kB / 0.6856 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005949/0.8923, allocations: 3.067 MB / 0.6886 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01016/0.9025, allocations: 7.111 MB / 0.6955 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01664/0.9191, allocations: 11.01 MB / 0.7063 GB, free: 7.273 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001496/0.9193, allocations: 43.98 kB / 0.7063 GB, free: 7.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=922) (initialization): time 0.285/1.204, allocations: 11.52 MB / 0.7176 GB, free: 185.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/1.204, allocations: 65.67 kB / 0.7176 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002194/1.205, allocations: 140.9 kB / 0.7177 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004651/1.209, allocations: 1.746 MB / 0.7195 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00663/1.216, allocations: 1.641 MB / 0.7211 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01727/1.233, allocations: 12.85 MB / 0.7336 GB, free: 179.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008506/1.242, allocations: 420.7 kB / 0.734 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002481/1.244, allocations: 428.9 kB / 0.7344 GB, free: 179.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * Number of states: 0 () * Number of discrete variables: 59 (frameTorque2.torqueArrow.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],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],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (850): * Single equations (assignments): 845 * 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.006682/1.251, allocations: 2.686 MB / 0.737 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001116/1.252, allocations: 457.5 kB / 0.7375 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009781/1.262, allocations: 6.249 MB / 0.7436 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.064e-05/1.262, allocations: 33.06 kB / 0.7436 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.947e-05/1.262, allocations: 11.38 kB / 0.7436 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.811e-05/1.262, allocations: 15 kB / 0.7436 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02265/1.285, allocations: 13.61 MB / 0.7569 GB, free: 169.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.428e-05/1.285, allocations: 0 / 0.7569 GB, free: 169.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002277/1.287, allocations: 455.1 kB / 0.7574 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003601/1.291, allocations: 1.534 MB / 0.7589 GB, free: 168.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003496/1.291, allocations: 47.84 kB / 0.7589 GB, free: 168.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01263/1.304, allocations: 12.12 MB / 0.7707 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/1.304, allocations: 0 / 0.7707 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01304/1.317, allocations: 10.07 MB / 0.7806 GB, free: 146.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001539/1.318, allocations: 498.1 kB / 0.7811 GB, free: 146.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009059/1.319, allocations: 44 kB / 0.7811 GB, free: 146.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002345/1.322, allocations: 191.7 kB / 0.7813 GB, free: 146 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005221/1.322, allocations: 162.7 kB / 0.7814 GB, free: 145.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002097/1.322, allocations: 67.98 kB / 0.7815 GB, free: 145.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004771/1.327, allocations: 3.128 MB / 0.7846 GB, free: 142.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.31e-07/1.327, allocations: 0 / 0.7846 GB, free: 142.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00799/1.335, allocations: 1.379 MB / 0.7859 GB, free: 141.3 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 (212): * Single equations (assignments): 207 * 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.01313/1.348, allocations: 10.74 MB / 0.7964 GB, free: 130.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01548/1.364, allocations: 10.83 MB / 0.807 GB, free: 119.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/1.364, allocations: 0 / 0.807 GB, free: 119.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004664/1.369, allocations: 3.248 MB / 0.8101 GB, free: 116.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004484/1.373, allocations: 0.6632 MB / 0.8108 GB, free: 115.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1042/1.477, allocations: 72.98 MB / 0.8821 GB, free: 33.77 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007043/1.484, allocations: 4.194 MB / 0.8862 GB, free: 29.54 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005917/1.49, allocations: 2.309 MB / 0.8884 GB, free: 27.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004059/1.494, allocations: 2.6 MB / 0.891 GB, free: 24.62 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/1.494, allocations: 0 / 0.891 GB, free: 24.62 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4208/1.915, allocations: 105.4 MB / 0.9939 GB, free: 129.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/14.76, allocations: 7.438 kB / 0.9939 GB, free: 129.2 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_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_FrameForcesAndTorques3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1)