Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001531/0.001532, allocations: 186 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.964/1.964, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 89.48 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004306/0.0004307, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3366, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1638/0.5006, allocations: 100.3 MB / 474.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/0.5009, allocations: 99.94 kB / 475 MB, free: 12.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6591/1.16, allocations: 97.61 MB / 0.5592 GB, free: 56.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.805e-06/1.16, allocations: 0 / 0.5592 GB, free: 56.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002955/1.16, allocations: 99.98 kB / 0.5593 GB, free: 56.45 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.01956/1.18, allocations: 4.991 MB / 0.5642 GB, free: 51.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/1.18, allocations: 12.03 kB / 0.5642 GB, free: 51.38 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003842/1.184, allocations: 0.8619 MB / 0.565 GB, free: 50.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03247/1.216, allocations: 4.506 MB / 0.5694 GB, free: 45.99 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01864/1.235, allocations: 5.086 MB / 0.5744 GB, free: 40.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000379/1.236, allocations: 361.4 kB / 0.5747 GB, free: 40.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002578/1.238, allocations: 475.8 kB / 0.5752 GB, free: 40.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03377/1.272, allocations: 12.06 MB / 0.587 GB, free: 26.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002738/1.272, allocations: 59.41 kB / 0.587 GB, free: 26.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001748/1.274, allocations: 231.9 kB / 0.5872 GB, free: 26.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002465/1.276, allocations: 1.199 MB / 0.5884 GB, free: 25.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02997/1.307, allocations: 9.974 MB / 0.5982 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4124/1.719, allocations: 52.96 MB / 0.6499 GB, free: 54.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0215/1.741, allocations: 5.234 MB / 0.655 GB, free: 53.53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01979/1.76, allocations: 8.049 MB / 0.6628 GB, free: 51.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.064e-05/1.761, allocations: 50.12 kB / 0.6629 GB, free: 51.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=216): time 6.132e-06/1.761, allocations: 0 / 0.6629 GB, free: 51.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=237): time 0.08296/1.843, allocations: 19.45 MB / 0.6819 GB, free: 48.44 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.493e-05/1.844, allocations: 190.9 kB / 0.6821 GB, free: 48.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01025/1.854, allocations: 4.218 MB / 0.6862 GB, free: 47.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006368/1.855, allocations: 60.98 kB / 0.6862 GB, free: 47.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002995/1.858, allocations: 3.303 MB / 0.6895 GB, free: 45.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001499/1.859, allocations: 0.8889 MB / 0.6903 GB, free: 45.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009718/1.86, allocations: 134.8 kB / 0.6905 GB, free: 45.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005748/1.861, allocations: 0.5868 MB / 0.691 GB, free: 45.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006646/1.867, allocations: 2.512 MB / 0.6935 GB, free: 44.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009226/1.877, allocations: 6.4 MB / 0.6997 GB, free: 38.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00914/1.886, allocations: 3.931 MB / 0.7036 GB, free: 37 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000138/1.886, allocations: 36.97 kB / 0.7036 GB, free: 37 MB / 410.7 MB Notification: Performance of matching and sorting (n=867) (initialization): time 0.02557/1.912, allocations: 9.344 MB / 0.7127 GB, free: 34.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/1.912, allocations: 63.34 kB / 0.7128 GB, free: 34.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002323/1.912, allocations: 138.5 kB / 0.7129 GB, free: 34.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00379/1.916, allocations: 0.9241 MB / 0.7138 GB, free: 34.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01044/1.926, allocations: 1.605 MB / 0.7154 GB, free: 33.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/1.937, allocations: 5.924 MB / 0.7212 GB, free: 28.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007573/1.945, allocations: 375.4 kB / 0.7215 GB, free: 27.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001467/1.946, allocations: 405 kB / 0.7219 GB, free: 27.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * Number of states: 0 () * Number of discrete variables: 42 (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.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 (819): * Single equations (assignments): 815 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006166/1.953, allocations: 2.39 MB / 0.7243 GB, free: 25.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/1.954, allocations: 421.5 kB / 0.7247 GB, free: 24.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01242/1.966, allocations: 4.296 MB / 0.7289 GB, free: 21.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.944e-05/1.966, allocations: 24 kB / 0.7289 GB, free: 21.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.662e-05/1.966, allocations: 8 kB / 0.7289 GB, free: 21.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.595e-05/1.966, allocations: 13.27 kB / 0.7289 GB, free: 21.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02992/1.996, allocations: 10.39 MB / 0.7391 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.646e-05/1.996, allocations: 7.938 kB / 0.7391 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004428/2.001, allocations: 482.2 kB / 0.7395 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003307/2.004, allocations: 0.7172 MB / 0.7402 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005979/2.005, allocations: 47.61 kB / 0.7403 GB, free: 12.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01082/2.016, allocations: 5.467 MB / 0.7456 GB, free: 7.176 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/2.016, allocations: 19.48 kB / 0.7456 GB, free: 7.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02057/2.036, allocations: 8.468 MB / 0.7539 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003372/2.04, allocations: 0.8164 MB / 0.7547 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001486/2.041, allocations: 43.66 kB / 0.7547 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004085/2.045, allocations: 147.1 kB / 0.7549 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009138/2.046, allocations: 147.1 kB / 0.755 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000338/2.047, allocations: 67.75 kB / 0.7551 GB, free: 14.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008846/2.056, allocations: 3.026 MB / 0.758 GB, free: 12.39 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.002e-06/2.056, allocations: 0 / 0.758 GB, free: 12.39 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008637/2.064, allocations: 1.152 MB / 0.7592 GB, free: 11.24 MB / 426.7 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 (198): * Single equations (assignments): 194 * 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.02317/2.088, allocations: 10.14 MB / 0.7691 GB, free: 1.117 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01702/2.105, allocations: 6.15 MB / 0.7751 GB, free: 11.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/2.105, allocations: 0 / 0.7751 GB, free: 11.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00718/2.112, allocations: 2.273 MB / 0.7773 GB, free: 8.727 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004152/2.116, allocations: 484.4 kB / 0.7777 GB, free: 8.27 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4404/2.557, allocations: 137.5 MB / 0.912 GB, free: 60.33 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01031/2.567, allocations: 3.779 MB / 0.9157 GB, free: 59.52 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005974/2.573, allocations: 2.28 MB / 0.9179 GB, free: 59.52 MB / 474.7 MB Notification: Performance of SimCode: time 1.272e-06/2.573, allocations: 0 / 0.9179 GB, free: 59.52 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.763/7.336, allocations: 115.7 MB / 1.031 GB, free: 143 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat