Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.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.WorldTorques,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001806/0.001806, allocations: 104.1 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.002117/0.002117, 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.583/1.583, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.2332/0.2332, allocations: 46.11 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.002237/0.002237, allocations: 80.42 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1586, allocations: 62.45 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.03226/0.1909, allocations: 15.41 MB / 495.6 MB, free: 5.641 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01901/0.21, allocations: 5.05 MB / 0.4889 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005289/0.2153, allocations: 103.7 kB / 0.489 GB, free: 484 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01651/0.2319, allocations: 4.988 MB / 0.4939 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01295/0.245, allocations: 2.513 MB / 0.4964 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005867/0.2509, allocations: 1.24 MB / 0.4976 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.246/0.4969, allocations: 7.954 MB / 0.5053 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008079/0.505, allocations: 5.988 MB / 0.5112 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004412/0.5095, allocations: 2.514 MB / 0.5136 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006129/0.5156, allocations: 3.448 MB / 0.517 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002302/0.518, allocations: 0.5372 MB / 0.5175 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004281/0.5223, allocations: 1.547 MB / 0.519 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004539/0.5268, allocations: 3.14 MB / 0.5221 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005334/0.5322, allocations: 3.56 MB / 0.5256 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01155/0.5437, allocations: 10.73 MB / 0.5361 GB, free: 5.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.5438, allocations: 4 kB / 0.5361 GB, free: 5.379 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.5438, allocations: 0 / 0.5361 GB, free: 5.379 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003045/0.5441, allocations: 3 kB / 0.5361 GB, free: 5.379 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: 2128 * Number of variables: 2128 Notification: Performance of Generate backend data structure: time 0.01855/0.5627, allocations: 7.808 MB / 0.5437 GB, free: 244 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/0.5627, allocations: 11.69 kB / 0.5437 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00326/0.566, allocations: 1.011 MB / 0.5447 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05804/0.6241, allocations: 8.282 MB / 0.5528 GB, free: 8.348 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0137/0.6378, allocations: 5.336 MB / 0.558 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004954/0.6383, allocations: 360.3 kB / 0.5583 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002665/0.641, allocations: 496.1 kB / 0.5588 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03028/0.6713, allocations: 14.1 MB / 0.5726 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003576/0.6717, allocations: 78.17 kB / 0.5727 GB, free: 3.543 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001606/0.6733, allocations: 227.9 kB / 0.5729 GB, free: 3.363 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005001/0.6784, allocations: 2.534 MB / 0.5753 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02636/0.7047, allocations: 11.45 MB / 0.5865 GB, free: 5.664 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07961/0.7844, allocations: 55.39 MB / 0.6406 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01268/0.7971, allocations: 4.465 MB / 0.645 GB, free: 8.949 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004424/0.8016, allocations: 2.708 MB / 0.6476 GB, free: 6.227 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001715/0.8018, allocations: 38.59 kB / 0.6477 GB, free: 6.203 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.057e-05/0.8018, allocations: 54.47 kB / 0.6477 GB, free: 6.145 MB / 494.1 MB Notification: Performance of pre-optimization done (n=186): time 6.081e-06/0.8019, allocations: 4 kB / 0.6477 GB, free: 6.141 MB / 494.1 MB Notification: Performance of matching and sorting (n=204): time 0.06119/0.8631, allocations: 20.35 MB / 0.6676 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001643/0.8633, allocations: 259.8 kB / 0.6678 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01354/0.8768, allocations: 6.689 MB / 0.6744 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000428/0.8773, allocations: 59.97 kB / 0.6744 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004759/0.882, allocations: 4.553 MB / 0.6789 GB, free: 6.047 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001249/0.8833, allocations: 0.8101 MB / 0.6797 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003496/0.8868, allocations: 1.558 MB / 0.6812 GB, free: 3.68 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.887, allocations: 312.6 kB / 0.6815 GB, free: 3.375 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004831/0.8918, allocations: 2.56 MB / 0.684 GB, free: 0.8125 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009833/0.9017, allocations: 7.444 MB / 0.6913 GB, free: 7.035 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/0.9166, allocations: 10.85 MB / 0.7019 GB, free: 10.31 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001748/0.9168, allocations: 52 kB / 0.7019 GB, free: 10.26 MB / 0.545 GB Notification: Performance of matching and sorting (n=996) (initialization): time 0.2536/1.17, allocations: 10.43 MB / 0.7121 GB, free: 178.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001885/1.171, allocations: 80.5 kB / 0.7122 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003034/1.171, allocations: 172.9 kB / 0.7123 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/1.174, allocations: 1.019 MB / 0.7133 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005867/1.18, allocations: 1.755 MB / 0.715 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/1.191, allocations: 10.36 MB / 0.7252 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006897/1.198, allocations: 420.2 kB / 0.7256 GB, free: 173.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001716/1.2, allocations: 478.9 kB / 0.726 GB, free: 173.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 786 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque2.arrow.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque1.arrow.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (930): * Single equations (assignments): 924 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.006572/1.206, allocations: 2.973 MB / 0.7289 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001391/1.208, allocations: 0.5458 MB / 0.7295 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007002/1.215, allocations: 3.75 MB / 0.7331 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.754e-05/1.215, allocations: 29.5 kB / 0.7331 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.013e-05/1.215, allocations: 6.875 kB / 0.7331 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.284e-05/1.215, allocations: 12.62 kB / 0.7332 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02064/1.235, allocations: 10.01 MB / 0.7429 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-05/1.235, allocations: 7.25 kB / 0.7429 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/1.237, allocations: 318.8 kB / 0.7432 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002094/1.239, allocations: 0.7407 MB / 0.744 GB, free: 167.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002928/1.239, allocations: 43.67 kB / 0.744 GB, free: 167.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008602/1.248, allocations: 9.449 MB / 0.7532 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/1.248, allocations: 3.906 kB / 0.7532 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009346/1.258, allocations: 6.584 MB / 0.7597 GB, free: 158.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/1.259, allocations: 0.6064 MB / 0.7603 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001533/1.261, allocations: 32.94 kB / 0.7603 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0028/1.264, allocations: 115.3 kB / 0.7604 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00046/1.264, allocations: 127.3 kB / 0.7605 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002019/1.264, allocations: 55.22 kB / 0.7606 GB, free: 158.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007833/1.272, allocations: 4.291 MB / 0.7648 GB, free: 156.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.61e-07/1.272, allocations: 0 / 0.7648 GB, free: 156.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008129/1.28, allocations: 1.363 MB / 0.7661 GB, free: 155.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (153): * Single equations (assignments): 147 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0101/1.29, allocations: 7.242 MB / 0.7732 GB, free: 149.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0113/1.302, allocations: 7.312 MB / 0.7803 GB, free: 142.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/1.302, allocations: 4 kB / 0.7803 GB, free: 142.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002925/1.305, allocations: 2.09 MB / 0.7824 GB, free: 140.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006597/1.311, allocations: 0.7976 MB / 0.7831 GB, free: 139.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1096/1.421, allocations: 83.41 MB / 0.8646 GB, free: 44.67 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00639/1.428, allocations: 4.536 MB / 0.869 GB, free: 40.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005925/1.434, allocations: 2.492 MB / 0.8715 GB, free: 37.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004164/1.438, allocations: 2.917 MB / 0.8743 GB, free: 34.68 MB / 0.545 GB Notification: Performance of SimCode: time 1.563e-06/1.438, allocations: 0 / 0.8743 GB, free: 34.68 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3982/1.836, allocations: 111.4 MB / 0.9831 GB, free: 166.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/15.14, allocations: 14.22 kB / 0.9831 GB, free: 166.4 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques_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_WorldTorques.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1)