Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 93.05 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 185.1 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002722/0.0002724, allocations: 8.531 kB / 300.8 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1131, allocations: 50.43 MB / 351.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.04362/0.1568, allocations: 48.75 MB / 400 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02728/0.1841, allocations: 11.55 MB / 411.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01333/0.1975, allocations: 239.4 kB / 411.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01041/0.208, allocations: 2.442 MB / 414.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02365/0.2317, allocations: 7.079 MB / 421.3 MB, free: 5.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00343/0.2351, allocations: 0.6163 MB / 421.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2805/0.5156, allocations: 25.08 MB / 447 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008189/0.5238, allocations: 4.973 MB / 452 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002429/0.5263, allocations: 1.054 MB / 453 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002547/0.5289, allocations: 1.327 MB / 454.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007109/0.5296, allocations: 143.2 kB / 454.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002047/0.5317, allocations: 0.9382 MB / 455.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001726/0.5334, allocations: 1.666 MB / 457.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.5347, allocations: 0.885 MB / 458 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007033/0.5417, allocations: 5.908 MB / 463.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.5418, allocations: 0 / 463.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.636e-06/0.5418, allocations: 0 / 463.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002718/0.542, allocations: 1.75 kB / 463.9 MB, free: 1.82 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01151/0.5536, allocations: 4.546 MB / 468.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.5536, allocations: 8.031 kB / 468.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002559/0.5562, allocations: 0.7627 MB / 469.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02451/0.5807, allocations: 5.068 MB / 474.3 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008516/0.5893, allocations: 2.807 MB / 477.1 MB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002647/0.5896, allocations: 254.7 kB / 477.3 MB, free: 6.277 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001637/0.5912, allocations: 325.7 kB / 477.6 MB, free: 6.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02105/0.6123, allocations: 10.9 MB / 488.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001394/0.6125, allocations: 42.22 kB / 488.6 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005371/0.613, allocations: 160.5 kB / 488.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00344/0.6165, allocations: 2.152 MB / 490.9 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01822/0.6347, allocations: 9.237 MB / 0.4884 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05635/0.6911, allocations: 41.84 MB / 0.5293 GB, free: 2.219 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01136/0.7025, allocations: 4.561 MB / 0.5337 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01188/0.7144, allocations: 7.286 MB / 0.5408 GB, free: 7.828 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.216e-05/0.7145, allocations: 51.56 kB / 0.5409 GB, free: 7.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 5.411e-06/0.7145, allocations: 3.281 kB / 0.5409 GB, free: 7.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=198): time 0.05297/0.7675, allocations: 18.65 MB / 0.5591 GB, free: 4.977 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.7677, allocations: 182.6 kB / 0.5593 GB, free: 4.762 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008989/0.7767, allocations: 4.722 MB / 0.5639 GB, free: 28 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005883/0.7773, allocations: 51.78 kB / 0.5639 GB, free: 15.97 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003085/0.7804, allocations: 3.244 MB / 0.5671 GB, free: 12.75 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001291/0.7817, allocations: 0.7573 MB / 0.5678 GB, free: 12 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007327/0.7825, allocations: 120 kB / 0.5679 GB, free: 11.88 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0006182/0.7831, allocations: 0.5626 MB / 0.5685 GB, free: 11.31 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004202/0.7873, allocations: 2.269 MB / 0.5707 GB, free: 9.035 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007195/0.7945, allocations: 5.976 MB / 0.5765 GB, free: 1.266 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005913/0.8004, allocations: 3.617 MB / 0.5801 GB, free: 13.77 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.574e-05/0.8006, allocations: 40 kB / 0.5801 GB, free: 13.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01923/0.8198, allocations: 8.823 MB / 0.5887 GB, free: 5.691 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000223/0.8201, allocations: 64 kB / 0.5888 GB, free: 5.629 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002943/0.8204, allocations: 132 kB / 0.5889 GB, free: 5.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002765/0.8231, allocations: 0.9498 MB / 0.5898 GB, free: 4.547 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005758/0.8289, allocations: 1.428 MB / 0.5912 GB, free: 3.242 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2562/1.085, allocations: 6.254 MB / 0.5973 GB, free: 168 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006116/1.091, allocations: 345.4 kB / 0.5977 GB, free: 168 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001445/1.093, allocations: 378.8 kB / 0.598 GB, free: 168 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (753): * Single equations (assignments): 747 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005772/1.099, allocations: 2.235 MB / 0.6002 GB, free: 167.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001681/1.1, allocations: 401.1 kB / 0.6006 GB, free: 167.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008932/1.109, allocations: 3.676 MB / 0.6042 GB, free: 167.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.466e-05/1.109, allocations: 21.25 kB / 0.6042 GB, free: 167.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/1.109, allocations: 9.344 kB / 0.6042 GB, free: 167.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.748e-05/1.109, allocations: 12 kB / 0.6042 GB, free: 167.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01804/1.127, allocations: 9.27 MB / 0.6133 GB, free: 165.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.007e-05/1.127, allocations: 4.844 kB / 0.6133 GB, free: 165.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/1.129, allocations: 319.2 kB / 0.6136 GB, free: 165.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001761/1.131, allocations: 0.7692 MB / 0.6143 GB, free: 165.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001957/1.131, allocations: 39.16 kB / 0.6144 GB, free: 165.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006144/1.137, allocations: 5.775 MB / 0.62 GB, free: 162.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/1.137, allocations: 14.69 kB / 0.62 GB, free: 162.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008454/1.145, allocations: 7.34 MB / 0.6272 GB, free: 159.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001525/1.147, allocations: 486.2 kB / 0.6277 GB, free: 158.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009632/1.148, allocations: 37.23 kB / 0.6277 GB, free: 158.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/1.15, allocations: 120.1 kB / 0.6278 GB, free: 158.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002946/1.15, allocations: 126.6 kB / 0.6279 GB, free: 158.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/1.15, allocations: 55.19 kB / 0.628 GB, free: 158.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004595/1.155, allocations: 3.035 MB / 0.631 GB, free: 157.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.9e-07/1.155, allocations: 3.188 kB / 0.631 GB, free: 157.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006032/1.161, allocations: 1.083 MB / 0.632 GB, free: 157.6 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (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 (157): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008629/1.169, allocations: 9.17 MB / 0.641 GB, free: 148.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007916/1.177, allocations: 5.507 MB / 0.6464 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/1.177, allocations: 3.391 kB / 0.6464 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002695/1.18, allocations: 1.97 MB / 0.6483 GB, free: 141.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002672/1.183, allocations: 470.3 kB / 0.6487 GB, free: 140.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04309/1.226, allocations: 111.9 MB / 0.758 GB, free: 24.82 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00352/1.229, allocations: 3.549 MB / 0.7614 GB, free: 21.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004624/1.234, allocations: 2.053 MB / 0.7634 GB, free: 19.18 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002378/1.237, allocations: 2.065 MB / 0.7655 GB, free: 17.11 MB / 478.1 MB Notification: Performance of SimCode: time 8.11e-07/1.237, allocations: 0 / 0.7655 GB, free: 17.11 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.34/1.577, allocations: 84.34 MB / 0.8478 GB, free: 119.7 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001517/1.577, allocations: 219.4 kB / 0.848 GB, free: 119.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.872/5.449, allocations: 0 / 0.848 GB, free: 119.5 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat