Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001062/0.001063, allocations: 179.9 kB / 17.01 MB, free: 5.125 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.296/1.296, allocations: 205.4 MB / 223.1 MB, free: 9.039 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.0008841/0.0008841, allocations: 88.17 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002621/0.0002622, allocations: 4 kB / 328.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2069, allocations: 47.57 MB / 375.9 MB, free: 45.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1116/0.3186, allocations: 100.3 MB / 476.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.3189, allocations: 91.95 kB / 476.3 MB, free: 12.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.393/0.7119, allocations: 97.61 MB / 0.5604 GB, free: 56.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.712, allocations: 0 / 0.5604 GB, free: 56.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002619/0.7122, allocations: 92 kB / 0.5605 GB, free: 56.3 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.01336/0.7256, allocations: 4.999 MB / 0.5654 GB, free: 51.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.7257, allocations: 8.031 kB / 0.5654 GB, free: 51.23 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003072/0.7287, allocations: 0.8735 MB / 0.5663 GB, free: 50.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01684/0.7456, allocations: 4.495 MB / 0.5707 GB, free: 45.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01456/0.7602, allocations: 5.086 MB / 0.5756 GB, free: 40.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003378/0.7606, allocations: 361.5 kB / 0.576 GB, free: 40.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002325/0.7629, allocations: 483.7 kB / 0.5764 GB, free: 39.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02155/0.7845, allocations: 12.05 MB / 0.5882 GB, free: 26.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002002/0.7848, allocations: 63.45 kB / 0.5883 GB, free: 26.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009403/0.7857, allocations: 235.9 kB / 0.5885 GB, free: 26.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001245/0.787, allocations: 1.195 MB / 0.5897 GB, free: 25.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01629/0.8033, allocations: 9.974 MB / 0.5994 GB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2362/1.039, allocations: 52.96 MB / 0.6511 GB, free: 54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01047/1.05, allocations: 5.232 MB / 0.6562 GB, free: 53.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0111/1.061, allocations: 8.039 MB / 0.6641 GB, free: 51.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/1.061, allocations: 56.34 kB / 0.6641 GB, free: 51.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=216): time 4.758e-06/1.061, allocations: 0.5 kB / 0.6641 GB, free: 51.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=237): time 0.04088/1.102, allocations: 19.46 MB / 0.6831 GB, free: 48.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/1.102, allocations: 181.6 kB / 0.6833 GB, free: 48.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005024/1.107, allocations: 4.22 MB / 0.6874 GB, free: 47.67 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003559/1.108, allocations: 61.02 kB / 0.6875 GB, free: 47.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00139/1.109, allocations: 3.433 MB / 0.6908 GB, free: 45.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000643/1.11, allocations: 0.8865 MB / 0.6917 GB, free: 45.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002496/1.11, allocations: 133.5 kB / 0.6918 GB, free: 45.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002474/1.11, allocations: 0.5896 MB / 0.6924 GB, free: 44.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002752/1.113, allocations: 2.507 MB / 0.6949 GB, free: 44.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003905/1.117, allocations: 6.394 MB / 0.7011 GB, free: 38.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003971/1.121, allocations: 3.937 MB / 0.7049 GB, free: 36.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-05/1.121, allocations: 39.44 kB / 0.705 GB, free: 36.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01159/1.133, allocations: 9.499 MB / 0.7143 GB, free: 34.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.855e-05/1.133, allocations: 66.84 kB / 0.7143 GB, free: 34.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.885e-05/1.133, allocations: 138.1 kB / 0.7145 GB, free: 34.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001796/1.135, allocations: 0.9282 MB / 0.7154 GB, free: 33.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004299/1.139, allocations: 1.602 MB / 0.7169 GB, free: 33.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005485/1.144, allocations: 5.932 MB / 0.7227 GB, free: 27.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004301/1.149, allocations: 381.6 kB / 0.7231 GB, free: 27.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005534/1.149, allocations: 399.6 kB / 0.7235 GB, free: 27.11 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.003213/1.152, allocations: 2.375 MB / 0.7258 GB, free: 25.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005574/1.153, allocations: 425.4 kB / 0.7262 GB, free: 24.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005955/1.159, allocations: 4.298 MB / 0.7304 GB, free: 21.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.687e-05/1.159, allocations: 24 kB / 0.7304 GB, free: 21.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.457e-06/1.159, allocations: 4 kB / 0.7304 GB, free: 21.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.586e-05/1.159, allocations: 14.64 kB / 0.7304 GB, free: 21.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01557/1.175, allocations: 10.41 MB / 0.7406 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.511e-05/1.175, allocations: 4 kB / 0.7406 GB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002006/1.177, allocations: 476 kB / 0.741 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001598/1.178, allocations: 0.7192 MB / 0.7417 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001626/1.178, allocations: 46.67 kB / 0.7418 GB, free: 11.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005455/1.184, allocations: 5.467 MB / 0.7471 GB, free: 6.828 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.184, allocations: 11.94 kB / 0.7471 GB, free: 6.816 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01233/1.196, allocations: 8.599 MB / 0.7555 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002527/1.199, allocations: 0.8172 MB / 0.7563 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005777/1.199, allocations: 47.89 kB / 0.7564 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001782/1.201, allocations: 148.3 kB / 0.7565 GB, free: 15.03 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003405/1.202, allocations: 147 kB / 0.7567 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001665/1.202, allocations: 70.2 kB / 0.7567 GB, free: 14.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005181/1.207, allocations: 3.021 MB / 0.7597 GB, free: 12.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.207, allocations: 0 / 0.7597 GB, free: 12.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005733/1.213, allocations: 1.156 MB / 0.7608 GB, free: 11.12 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.01179/1.224, allocations: 10.13 MB / 0.7707 GB, free: 0.832 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009589/1.234, allocations: 6.15 MB / 0.7767 GB, free: 10.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/1.234, allocations: 0 / 0.7767 GB, free: 10.71 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003626/1.238, allocations: 2.28 MB / 0.7789 GB, free: 8.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002551/1.24, allocations: 475.2 kB / 0.7794 GB, free: 7.977 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2459/1.486, allocations: 136.9 MB / 0.9131 GB, free: 61.25 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003975/1.49, allocations: 3.775 MB / 0.9168 GB, free: 60.43 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004688/1.495, allocations: 2.216 MB / 0.919 GB, free: 60.39 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002425/1.497, allocations: 2.231 MB / 0.9211 GB, free: 60.39 MB / 474.7 MB Notification: Performance of SimCode: time 1.153e-06/1.497, allocations: 3.391 kB / 0.9211 GB, free: 60.39 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2657/1.763, allocations: 90.82 MB / 1.01 GB, free: 120.9 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001396/1.763, allocations: 220.6 kB / 1.01 GB, free: 120.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.331/6.094, allocations: 2.812 kB / 1.01 GB, free: 120.6 MB / 474.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat