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.001482/0.001482, allocations: 180.2 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009076/0.0009077, allocations: 98.28 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003625, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3125, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.4451, allocations: 100.5 MB / 0.4903 GB, free: 11.87 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000398/0.4456, allocations: 100.5 kB / 0.4904 GB, free: 11.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5476/0.9933, allocations: 92.45 MB / 0.5807 GB, free: 31.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.9933, allocations: 0 / 0.5807 GB, free: 31.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002983/0.9937, allocations: 88 kB / 0.5808 GB, free: 31.81 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: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01572/1.009, allocations: 4.731 MB / 0.5854 GB, free: 27.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/1.009, allocations: 12.03 kB / 0.5854 GB, free: 27 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003637/1.013, allocations: 0.7998 MB / 0.5862 GB, free: 26.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01702/1.03, allocations: 4.436 MB / 0.5905 GB, free: 21.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01415/1.044, allocations: 4.781 MB / 0.5952 GB, free: 16.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003431/1.045, allocations: 336.7 kB / 0.5955 GB, free: 16.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002358/1.047, allocations: 447.8 kB / 0.596 GB, free: 16.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02526/1.072, allocations: 11.29 MB / 0.607 GB, free: 3.781 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003355/1.073, allocations: 63.41 kB / 0.607 GB, free: 3.719 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002064/1.075, allocations: 223.9 kB / 0.6073 GB, free: 3.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001603/1.076, allocations: 1.093 MB / 0.6083 GB, free: 2.406 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02038/1.097, allocations: 9.253 MB / 0.6174 GB, free: 9.133 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3645/1.461, allocations: 50.36 MB / 0.6665 GB, free: 55.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/1.473, allocations: 4.778 MB / 0.6712 GB, free: 54.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01359/1.486, allocations: 7.281 MB / 0.6783 GB, free: 53.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/1.486, allocations: 53.33 kB / 0.6784 GB, free: 53.26 MB / 426.7 MB Notification: Performance of pre-optimization done (n=177): time 4.248e-06/1.486, allocations: 0 / 0.6784 GB, free: 53.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=198): time 0.04435/1.531, allocations: 17.83 MB / 0.6958 GB, free: 49.85 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/1.531, allocations: 176.9 kB / 0.696 GB, free: 49.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006029/1.537, allocations: 4.087 MB / 0.6999 GB, free: 49.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004733/1.537, allocations: 55.81 kB / 0.7 GB, free: 49.26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002018/1.539, allocations: 3.245 MB / 0.7032 GB, free: 47.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009619/1.54, allocations: 0.76 MB / 0.7039 GB, free: 47.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002885/1.541, allocations: 124.5 kB / 0.704 GB, free: 47.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000304/1.541, allocations: 0.5728 MB / 0.7046 GB, free: 46.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002857/1.544, allocations: 2.205 MB / 0.7067 GB, free: 46.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004582/1.548, allocations: 5.928 MB / 0.7125 GB, free: 41.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004799/1.553, allocations: 3.554 MB / 0.716 GB, free: 40.62 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001303/1.553, allocations: 37.47 kB / 0.716 GB, free: 40.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=804) (initialization): time 0.0198/1.573, allocations: 8.69 MB / 0.7245 GB, free: 38.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001417/1.573, allocations: 61.44 kB / 0.7246 GB, free: 38.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00024/1.574, allocations: 129.5 kB / 0.7247 GB, free: 38.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002184/1.576, allocations: 0.916 MB / 0.7256 GB, free: 38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005178/1.581, allocations: 1.474 MB / 0.727 GB, free: 37.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006722/1.588, allocations: 5.933 MB / 0.7328 GB, free: 33.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005211/1.593, allocations: 342.4 kB / 0.7332 GB, free: 33.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001213/1.594, allocations: 378.7 kB / 0.7335 GB, free: 33.27 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (756): * Single equations (assignments): 752 * 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.005192/1.599, allocations: 2.239 MB / 0.7357 GB, free: 31.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/1.601, allocations: 394.8 kB / 0.7361 GB, free: 30.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007452/1.608, allocations: 3.583 MB / 0.7396 GB, free: 27.99 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.287e-05/1.608, allocations: 27.12 kB / 0.7396 GB, free: 27.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/1.608, allocations: 4 kB / 0.7396 GB, free: 27.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.623e-05/1.608, allocations: 11.53 kB / 0.7396 GB, free: 27.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01786/1.626, allocations: 9.12 MB / 0.7485 GB, free: 20.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.289e-05/1.626, allocations: 4 kB / 0.7485 GB, free: 20.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001884/1.628, allocations: 394.9 kB / 0.7489 GB, free: 20.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001704/1.63, allocations: 0.7163 MB / 0.7496 GB, free: 19.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002624/1.63, allocations: 36 kB / 0.7496 GB, free: 19.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006022/1.636, allocations: 5.478 MB / 0.755 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/1.636, allocations: 11.94 kB / 0.755 GB, free: 14.83 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008903/1.645, allocations: 7.191 MB / 0.762 GB, free: 8.207 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/1.647, allocations: 472.5 kB / 0.7625 GB, free: 7.742 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001277/1.648, allocations: 36 kB / 0.7625 GB, free: 7.707 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002438/1.65, allocations: 117.9 kB / 0.7626 GB, free: 7.633 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004249/1.651, allocations: 132.8 kB / 0.7628 GB, free: 7.547 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001908/1.651, allocations: 58.55 kB / 0.7628 GB, free: 7.496 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007154/1.658, allocations: 2.929 MB / 0.7657 GB, free: 5.086 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.658, allocations: 0 / 0.7657 GB, free: 5.086 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007646/1.666, allocations: 1.051 MB / 0.7667 GB, free: 4.039 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 (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.01175/1.678, allocations: 9.035 MB / 0.7755 GB, free: 11.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01002/1.688, allocations: 5.409 MB / 0.7808 GB, free: 7.016 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/1.688, allocations: 4 kB / 0.7808 GB, free: 7.012 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003578/1.691, allocations: 1.919 MB / 0.7827 GB, free: 5.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003412/1.695, allocations: 468.3 kB / 0.7831 GB, free: 4.945 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3281/2.023, allocations: 129.8 MB / 0.9099 GB, free: 78.91 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004612/2.028, allocations: 3.543 MB / 0.9133 GB, free: 78.11 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004903/2.033, allocations: 2.046 MB / 0.9153 GB, free: 78.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002833/2.035, allocations: 2.1 MB / 0.9174 GB, free: 78.07 MB / 490.7 MB Notification: Performance of SimCode: time 1.123e-06/2.035, allocations: 0 / 0.9174 GB, free: 78.07 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1256/2.161, allocations: 84.99 MB / 1 GB, free: 22.3 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/2.161, allocations: 216.8 kB / 1.001 GB, free: 22.06 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.759/6.92, allocations: 4 kB / 1.001 GB, free: 22.06 MB / 490.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