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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 221.5 MB / 230.3 MB, free: 7.535 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008705/0.0008704, allocations: 92.28 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.862e-05/1.861e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1178, allocations: 50.43 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3748/0.4927, allocations: 99.78 MB / 487.3 MB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003069/0.493, allocations: 91.94 kB / 487.4 MB, free: 10.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4861/0.9792, allocations: 90.49 MB / 0.5644 GB, free: 96.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.9793, allocations: 1 kB / 0.5644 GB, free: 96.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002407/0.9795, allocations: 89.44 kB / 0.5645 GB, free: 96.11 MB / 426.7 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.01615/0.9957, allocations: 4.425 MB / 0.5688 GB, free: 94.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.9957, allocations: 10.06 kB / 0.5688 GB, free: 94.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01979/1.016, allocations: 4.437 MB / 0.5731 GB, free: 93.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01282/1.028, allocations: 4.746 MB / 0.5778 GB, free: 93.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001963/1.029, allocations: 146.5 kB / 0.5779 GB, free: 93.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001935/1.031, allocations: 259.8 kB / 0.5782 GB, free: 93.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01018/1.041, allocations: 6.426 MB / 0.5844 GB, free: 93.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01599/1.057, allocations: 9.889 MB / 0.5941 GB, free: 89.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001707/1.057, allocations: 56.94 kB / 0.5941 GB, free: 89.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006508/1.058, allocations: 36.12 kB / 0.5942 GB, free: 89.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001396/1.059, allocations: 1.093 MB / 0.5952 GB, free: 89.22 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0445/1.104, allocations: 48.33 MB / 0.6424 GB, free: 53.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003621/1.107, allocations: 3.638 MB / 0.646 GB, free: 51.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001945/1.109, allocations: 2.094 MB / 0.648 GB, free: 49.24 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006639/1.11, allocations: 0.6886 MB / 0.6487 GB, free: 48.51 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/1.11, allocations: 48.02 kB / 0.6488 GB, free: 48.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=168): time 4.939e-06/1.11, allocations: 3.75 kB / 0.6488 GB, free: 48.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.02821/1.138, allocations: 14.8 MB / 0.6632 GB, free: 35.64 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/1.138, allocations: 173.6 kB / 0.6634 GB, free: 35.44 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00469/1.143, allocations: 3.268 MB / 0.6666 GB, free: 32.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005197/1.144, allocations: 29.7 kB / 0.6666 GB, free: 32.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001776/1.145, allocations: 3.336 MB / 0.6699 GB, free: 29.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001077/1.146, allocations: 0.716 MB / 0.6706 GB, free: 28.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002487/1.147, allocations: 0 / 0.6706 GB, free: 28.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002776/1.147, allocations: 0.5755 MB / 0.6711 GB, free: 28.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002416/1.149, allocations: 2.098 MB / 0.6732 GB, free: 26.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003828/1.153, allocations: 5.914 MB / 0.6789 GB, free: 18.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004247/1.158, allocations: 3.5 MB / 0.6824 GB, free: 15.63 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.562e-05/1.158, allocations: 40 kB / 0.6824 GB, free: 15.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=831) (initialization): time 0.01416/1.172, allocations: 7.887 MB / 0.6901 GB, free: 7.695 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.472e-05/1.172, allocations: 64 kB / 0.6902 GB, free: 7.633 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001815/1.172, allocations: 136 kB / 0.6903 GB, free: 7.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001981/1.174, allocations: 0.9257 MB / 0.6912 GB, free: 6.574 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004998/1.179, allocations: 1.52 MB / 0.6927 GB, free: 5.051 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006324/1.185, allocations: 5.475 MB / 0.698 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005342/1.191, allocations: 231.4 kB / 0.6983 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001456/1.192, allocations: 392 kB / 0.6986 GB, free: 14.85 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 49 (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.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (783): * Single equations (assignments): 779 * 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%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001794/1.194, allocations: 470.3 kB / 0.6991 GB, free: 14.39 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006629/1.201, allocations: 3.568 MB / 0.7026 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001226/1.202, allocations: 339.6 kB / 0.7029 GB, free: 10.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00688/1.209, allocations: 3.277 MB / 0.7061 GB, free: 7.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.993e-05/1.209, allocations: 23.94 kB / 0.7061 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/1.209, allocations: 11.94 kB / 0.7061 GB, free: 7.145 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.108e-05/1.209, allocations: 11.97 kB / 0.7061 GB, free: 7.133 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2694/1.479, allocations: 7.879 MB / 0.7138 GB, free: 98.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.551e-05/1.479, allocations: 2.969 kB / 0.7138 GB, free: 98.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002089/1.481, allocations: 351.6 kB / 0.7142 GB, free: 98.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002108/1.483, allocations: 0.7068 MB / 0.7149 GB, free: 98.12 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003861/1.483, allocations: 9.234 kB / 0.7149 GB, free: 98.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007469/1.491, allocations: 4.924 MB / 0.7197 GB, free: 96.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/1.491, allocations: 3.594 kB / 0.7197 GB, free: 96.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01159/1.502, allocations: 6.241 MB / 0.7258 GB, free: 96.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001165/1.504, allocations: 387.9 kB / 0.7261 GB, free: 96.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001177/1.505, allocations: 5.141 kB / 0.7261 GB, free: 96.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002447/1.507, allocations: 87.19 kB / 0.7262 GB, free: 96.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005058/1.508, allocations: 114.2 kB / 0.7263 GB, free: 96.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002502/1.508, allocations: 48.84 kB / 0.7264 GB, free: 96.01 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006852/1.515, allocations: 2.179 MB / 0.7285 GB, free: 95.87 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.515, allocations: 0 / 0.7285 GB, free: 95.87 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00869/1.524, allocations: 0.9036 MB / 0.7294 GB, free: 95.87 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 144 * 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.009974/1.534, allocations: 7.374 MB / 0.7366 GB, free: 94.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008327/1.542, allocations: 5.194 MB / 0.7417 GB, free: 93.96 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.769e-06/1.542, allocations: 0 / 0.7417 GB, free: 93.96 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002588/1.545, allocations: 1.769 MB / 0.7434 GB, free: 93.53 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002495/1.547, allocations: 360 kB / 0.7437 GB, free: 93.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02301/1.57, allocations: 9.484 MB / 0.753 GB, free: 90.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003598/1.574, allocations: 3.55 MB / 0.7565 GB, free: 88.81 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004757/1.579, allocations: 2.082 MB / 0.7585 GB, free: 88.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002543/1.581, allocations: 2.046 MB / 0.7605 GB, free: 87.09 MB / 442.7 MB Notification: Performance of SimCode: time 1.332e-06/1.581, allocations: 0 / 0.7605 GB, free: 87.09 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1162/1.697, allocations: 74.63 MB / 0.8334 GB, free: 36.23 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/1.698, allocations: 154.4 kB / 0.8335 GB, free: 36.04 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.293/5.991, allocations: 0 / 0.8335 GB, free: 36.04 MB / 442.7 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