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.001678/0.001678, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.5/1.5, allocations: 221.3 MB / 235.5 MB, free: 2.949 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.0009125/0.0009124, allocations: 87.73 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.972e-05/3.976e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1445, allocations: 50.41 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3818/0.5264, allocations: 100.5 MB / 494.8 MB, free: 3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.5268, allocations: 83.95 kB / 494.9 MB, free: 2.918 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4871/1.014, allocations: 92.51 MB / 0.5736 GB, free: 97.57 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.014, allocations: 0 / 0.5736 GB, free: 97.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002612/1.014, allocations: 83.66 kB / 0.5737 GB, free: 97.57 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.01657/1.031, allocations: 4.425 MB / 0.578 GB, free: 95.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/1.031, allocations: 18.89 kB / 0.5781 GB, free: 95.71 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003549/1.034, allocations: 0.8117 MB / 0.5788 GB, free: 95.63 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01838/1.053, allocations: 4.432 MB / 0.5832 GB, free: 95.31 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01278/1.066, allocations: 4.757 MB / 0.5878 GB, free: 94.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002871/1.066, allocations: 337.2 kB / 0.5881 GB, free: 94.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002049/1.068, allocations: 446 kB / 0.5886 GB, free: 94.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02252/1.091, allocations: 11.21 MB / 0.5995 GB, free: 89.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001515/1.091, allocations: 53.19 kB / 0.5996 GB, free: 89.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006948/1.091, allocations: 220 kB / 0.5998 GB, free: 88.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001185/1.093, allocations: 1.094 MB / 0.6008 GB, free: 88.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01712/1.11, allocations: 9.131 MB / 0.6098 GB, free: 85.87 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04819/1.158, allocations: 50.37 MB / 0.659 GB, free: 40.42 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01178/1.17, allocations: 4.757 MB / 0.6636 GB, free: 35.52 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002416/1.172, allocations: 2.303 MB / 0.6658 GB, free: 33.21 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009719/1.182, allocations: 7.27 MB / 0.6729 GB, free: 25.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/1.182, allocations: 55.44 kB / 0.673 GB, free: 25.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=177): time 4.849e-06/1.182, allocations: 4 kB / 0.673 GB, free: 25.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=198): time 0.03765/1.22, allocations: 15.24 MB / 0.6879 GB, free: 10.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.173e-05/1.22, allocations: 175.5 kB / 0.6881 GB, free: 10.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005224/1.225, allocations: 4.051 MB / 0.692 GB, free: 6.098 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003442/1.226, allocations: 53.7 kB / 0.6921 GB, free: 6.039 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001504/1.227, allocations: 3.241 MB / 0.6952 GB, free: 2.797 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007987/1.228, allocations: 0.7662 MB / 0.696 GB, free: 2.039 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/1.228, allocations: 120 kB / 0.6961 GB, free: 1.922 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002757/1.228, allocations: 0.5624 MB / 0.6966 GB, free: 1.352 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003097/1.232, allocations: 2.16 MB / 0.6987 GB, free: 15.19 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005805/1.237, allocations: 5.898 MB / 0.7045 GB, free: 7.422 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005612/1.243, allocations: 3.554 MB / 0.708 GB, free: 3.859 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.863e-05/1.243, allocations: 36 kB / 0.708 GB, free: 3.824 MB / 442.7 MB Notification: Performance of matching and sorting (n=804) (initialization): time 0.2772/1.52, allocations: 8.586 MB / 0.7164 GB, free: 97.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001293/1.521, allocations: 61.31 kB / 0.7165 GB, free: 97.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002578/1.521, allocations: 132.3 kB / 0.7166 GB, free: 97.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002696/1.523, allocations: 0.915 MB / 0.7175 GB, free: 97.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005754/1.529, allocations: 1.471 MB / 0.7189 GB, free: 97.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009058/1.538, allocations: 5.76 MB / 0.7245 GB, free: 96.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005971/1.544, allocations: 345.2 kB / 0.7249 GB, free: 96.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001641/1.546, allocations: 382.9 kB / 0.7252 GB, free: 96.15 MB / 442.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 () * 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.001465/1.548, allocations: 0.5849 MB / 0.7258 GB, free: 96.04 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008626/1.548, allocations: 394.8 kB / 0.7262 GB, free: 96.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006996/1.555, allocations: 3.557 MB / 0.7297 GB, free: 95.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.555e-05/1.555, allocations: 29.84 kB / 0.7297 GB, free: 95.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.549e-05/1.555, allocations: 8.438 kB / 0.7297 GB, free: 95.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.821e-05/1.556, allocations: 9.906 kB / 0.7297 GB, free: 95.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01604/1.572, allocations: 9.102 MB / 0.7386 GB, free: 94.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-05/1.572, allocations: 9.031 kB / 0.7386 GB, free: 94.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/1.573, allocations: 388.6 kB / 0.739 GB, free: 94.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001674/1.575, allocations: 0.7148 MB / 0.7397 GB, free: 94.34 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000175/1.575, allocations: 38.44 kB / 0.7397 GB, free: 94.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005831/1.581, allocations: 5.305 MB / 0.7449 GB, free: 91.53 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/1.581, allocations: 12.53 kB / 0.7449 GB, free: 91.53 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008437/1.59, allocations: 7.147 MB / 0.7519 GB, free: 87.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001477/1.591, allocations: 469.5 kB / 0.7523 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006608/1.592, allocations: 38.02 kB / 0.7524 GB, free: 87.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001643/1.593, allocations: 117.5 kB / 0.7525 GB, free: 87.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002968/1.594, allocations: 133.1 kB / 0.7526 GB, free: 87.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/1.594, allocations: 58.8 kB / 0.7526 GB, free: 87.52 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005159/1.599, allocations: 2.888 MB / 0.7555 GB, free: 86.51 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.599, allocations: 0 / 0.7555 GB, free: 86.51 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00635/1.605, allocations: 1.049 MB / 0.7565 GB, free: 86.39 MB / 442.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 () * 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.008661/1.614, allocations: 8.977 MB / 0.7653 GB, free: 81.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008388/1.623, allocations: 5.351 MB / 0.7705 GB, free: 79.32 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/1.623, allocations: 0 / 0.7705 GB, free: 79.32 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002678/1.625, allocations: 1.894 MB / 0.7723 GB, free: 78.58 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002505/1.628, allocations: 473.9 kB / 0.7728 GB, free: 78.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02017/1.648, allocations: 9.906 MB / 0.7825 GB, free: 74.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003321/1.651, allocations: 3.546 MB / 0.7859 GB, free: 72.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004843/1.656, allocations: 2.046 MB / 0.7879 GB, free: 71.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002915/1.659, allocations: 2.105 MB / 0.79 GB, free: 69.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.363e-06/1.659, allocations: 0 / 0.79 GB, free: 69.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1254/1.785, allocations: 84.82 MB / 0.8728 GB, free: 7.305 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/1.785, allocations: 186.4 kB / 0.873 GB, free: 7.082 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.185/6.969, allocations: 64 / 0.873 GB, free: 7.082 MB / 458.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