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.001157/0.001157, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.631/1.631, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009839/0.000984, allocations: 90.22 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.741e-05/2.784e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1026, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3622/0.4649, allocations: 99.77 MB / 462.9 MB, free: 11.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.4653, allocations: 88.33 kB / 463 MB, free: 11.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4759/0.9411, allocations: 95.53 MB / 0.5455 GB, free: 90.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.9412, allocations: 0 / 0.5455 GB, free: 90.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002854/0.9415, allocations: 89.91 kB / 0.5455 GB, free: 90.14 MB / 410.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.01849/0.96, allocations: 4.677 MB / 0.5501 GB, free: 88.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.9601, allocations: 8.938 kB / 0.5501 GB, free: 88.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0189/0.979, allocations: 4.501 MB / 0.5545 GB, free: 87.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01411/0.9932, allocations: 5.066 MB / 0.5595 GB, free: 87.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004017/0.9936, allocations: 153.4 kB / 0.5596 GB, free: 87.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003261/0.9969, allocations: 277.6 kB / 0.5599 GB, free: 87.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01407/1.011, allocations: 6.988 MB / 0.5667 GB, free: 87.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02563/1.037, allocations: 10.59 MB / 0.577 GB, free: 84.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003476/1.037, allocations: 57.91 kB / 0.5771 GB, free: 84.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002502/1.04, allocations: 33.25 kB / 0.5771 GB, free: 84.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001946/1.042, allocations: 1.195 MB / 0.5783 GB, free: 84.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07381/1.115, allocations: 50.62 MB / 0.6277 GB, free: 47.21 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00555/1.121, allocations: 4.05 MB / 0.6317 GB, free: 43.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003292/1.124, allocations: 2.407 MB / 0.634 GB, free: 41.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009588/1.125, allocations: 0.6824 MB / 0.6347 GB, free: 40.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/1.125, allocations: 55.81 kB / 0.6348 GB, free: 40.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=207): time 6.873e-06/1.125, allocations: 0 / 0.6348 GB, free: 40.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=229): time 0.05187/1.177, allocations: 17.09 MB / 0.6515 GB, free: 25.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.135e-05/1.177, allocations: 176.2 kB / 0.6516 GB, free: 25.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01121/1.189, allocations: 3.393 MB / 0.6549 GB, free: 22.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000814/1.19, allocations: 29.7 kB / 0.655 GB, free: 22.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00395/1.194, allocations: 3.542 MB / 0.6584 GB, free: 19.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001838/1.195, allocations: 0.8359 MB / 0.6592 GB, free: 18.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001345/1.197, allocations: 0 / 0.6592 GB, free: 18.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001168/1.198, allocations: 0.5975 MB / 0.6598 GB, free: 17.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006161/1.204, allocations: 2.398 MB / 0.6622 GB, free: 15.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01009/1.214, allocations: 6.43 MB / 0.6684 GB, free: 7.625 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009771/1.224, allocations: 3.901 MB / 0.6723 GB, free: 3.965 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002955/1.225, allocations: 50.39 kB / 0.6723 GB, free: 3.918 MB / 410.7 MB Notification: Performance of matching and sorting (n=904) (initialization): time 0.03294/1.258, allocations: 8.693 MB / 0.6808 GB, free: 11.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000337/1.258, allocations: 72.06 kB / 0.6809 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004324/1.258, allocations: 146.7 kB / 0.681 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003856/1.262, allocations: 0.9257 MB / 0.6819 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01009/1.272, allocations: 1.669 MB / 0.6835 GB, free: 8.402 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/1.285, allocations: 5.491 MB / 0.6889 GB, free: 2.797 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007127/1.292, allocations: 263.4 kB / 0.6891 GB, free: 2.539 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002089/1.294, allocations: 431.6 kB / 0.6896 GB, free: 2.121 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (856): * Single equations (assignments): 852 * 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.002786/1.297, allocations: 474.4 kB / 0.69 GB, free: 1.652 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3222/1.619, allocations: 4.152 MB / 0.6941 GB, free: 93.38 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001527/1.621, allocations: 365.3 kB / 0.6944 GB, free: 93.38 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01105/1.632, allocations: 3.956 MB / 0.6983 GB, free: 93.24 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.483e-05/1.632, allocations: 25.47 kB / 0.6983 GB, free: 93.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.472e-05/1.632, allocations: 6.531 kB / 0.6983 GB, free: 93.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.389e-05/1.632, allocations: 11.42 kB / 0.6983 GB, free: 93.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02674/1.659, allocations: 9.081 MB / 0.7072 GB, free: 92.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/1.659, allocations: 3.781 kB / 0.7072 GB, free: 92.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002105/1.661, allocations: 440.1 kB / 0.7076 GB, free: 92.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001695/1.663, allocations: 0.7083 MB / 0.7083 GB, free: 92.67 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002607/1.663, allocations: 9.75 kB / 0.7083 GB, free: 92.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006419/1.669, allocations: 4.986 MB / 0.7132 GB, free: 91.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.739e-06/1.669, allocations: 7.266 kB / 0.7132 GB, free: 91.39 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01096/1.68, allocations: 7.326 MB / 0.7203 GB, free: 90.58 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002283/1.683, allocations: 0.7345 MB / 0.7211 GB, free: 90.33 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001135/1.684, allocations: 10.23 kB / 0.7211 GB, free: 90.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002492/1.686, allocations: 107.8 kB / 0.7212 GB, free: 90.33 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003688/1.687, allocations: 127.8 kB / 0.7213 GB, free: 90.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001896/1.687, allocations: 61.59 kB / 0.7213 GB, free: 90.33 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004696/1.692, allocations: 2.261 MB / 0.7236 GB, free: 89.83 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.71e-07/1.692, allocations: 0 / 0.7236 GB, free: 89.83 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007473/1.699, allocations: 0.988 MB / 0.7245 GB, free: 89.83 MB / 426.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 (190): * Single equations (assignments): 186 * 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.01209/1.711, allocations: 8.458 MB / 0.7328 GB, free: 85.67 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0106/1.722, allocations: 5.918 MB / 0.7386 GB, free: 83.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/1.722, allocations: 0 / 0.7386 GB, free: 83.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003823/1.726, allocations: 2.147 MB / 0.7407 GB, free: 83.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00329/1.729, allocations: 352.9 kB / 0.741 GB, free: 82.91 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03289/1.762, allocations: 10.39 MB / 0.7511 GB, free: 79.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008682/1.771, allocations: 3.768 MB / 0.7548 GB, free: 77.95 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.008147/1.779, allocations: 2.266 MB / 0.757 GB, free: 77.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004985/1.784, allocations: 2.224 MB / 0.7592 GB, free: 76.09 MB / 426.7 MB Notification: Performance of SimCode: time 1.533e-06/1.784, allocations: 0 / 0.7592 GB, free: 76.09 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1419/1.926, allocations: 80.31 MB / 0.8376 GB, free: 5.77 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/1.926, allocations: 162.4 kB / 0.8378 GB, free: 5.57 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.88/6.806, allocations: 0 / 0.8378 GB, free: 5.57 MB / 426.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