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.001502/0.001506, allocations: 183.7 kB / 16.4 MB, free: 5.754 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.98/1.98, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001052/0.001052, allocations: 95.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003813/0.0003814, allocations: 12 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3435, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.05917/0.4027, allocations: 49.65 MB / 424.3 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0323/0.435, allocations: 11.67 MB / 435.9 MB, free: 3.367 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009944/0.445, allocations: 243.4 kB / 436.2 MB, free: 3.129 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008846/0.4539, allocations: 2.465 MB / 438.7 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02735/0.4813, allocations: 7.168 MB / 445.8 MB, free: 9.461 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004155/0.4855, allocations: 0.6124 MB / 446.4 MB, free: 8.848 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.03822/0.5237, allocations: 14.36 MB / 460.8 MB, free: 10.48 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01052/0.5343, allocations: 5.082 MB / 465.9 MB, free: 5.328 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002622/0.537, allocations: 1.137 MB / 467 MB, free: 4.188 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003197/0.5402, allocations: 1.479 MB / 468.5 MB, free: 2.703 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009409/0.5412, allocations: 164 kB / 468.6 MB, free: 2.543 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00293/0.5441, allocations: 0.9207 MB / 469.6 MB, free: 1.621 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003015/0.5472, allocations: 1.804 MB / 471.4 MB, free: 15.81 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001699/0.5489, allocations: 0.9517 MB / 472.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01035/0.5593, allocations: 6.395 MB / 478.7 MB, free: 8.441 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.5593, allocations: 0 / 478.7 MB, free: 8.441 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.5593, allocations: 0 / 478.7 MB, free: 8.441 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002387/0.5596, allocations: 0 / 478.7 MB, free: 8.441 MB / 362.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.01606/0.5757, allocations: 4.811 MB / 483.5 MB, free: 3.562 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.5757, allocations: 8.031 kB / 483.5 MB, free: 3.555 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002678/0.5784, allocations: 0.8189 MB / 484.4 MB, free: 2.727 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04972/0.6282, allocations: 5.122 MB / 489.5 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009935/0.6381, allocations: 3.085 MB / 492.6 MB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003345/0.6385, allocations: 262.8 kB / 492.8 MB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001656/0.6402, allocations: 355.7 kB / 493.2 MB, free: 9.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2919/0.9321, allocations: 11.71 MB / 0.493 GB, free: 106.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001883/0.9324, allocations: 45.59 kB / 0.4931 GB, free: 106.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008115/0.9332, allocations: 170.8 kB / 0.4933 GB, free: 106.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00692/0.9401, allocations: 2.334 MB / 0.4955 GB, free: 105.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03031/0.9705, allocations: 9.989 MB / 0.5053 GB, free: 101.4 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06992/1.04, allocations: 44.43 MB / 0.5487 GB, free: 58.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02149/1.062, allocations: 5.413 MB / 0.554 GB, free: 53.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01858/1.081, allocations: 8.038 MB / 0.5618 GB, free: 44.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/1.081, allocations: 63.8 kB / 0.5619 GB, free: 44.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=216): time 5.962e-06/1.081, allocations: 4 kB / 0.5619 GB, free: 44.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=237): time 0.08418/1.165, allocations: 20.7 MB / 0.5821 GB, free: 23.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/1.165, allocations: 180.2 kB / 0.5823 GB, free: 23.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00913/1.174, allocations: 4.873 MB / 0.587 GB, free: 18.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006312/1.175, allocations: 65.7 kB / 0.5871 GB, free: 18.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002584/1.177, allocations: 3.289 MB / 0.5903 GB, free: 15.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00135/1.179, allocations: 0.8854 MB / 0.5912 GB, free: 14.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006739/1.18, allocations: 136 kB / 0.5913 GB, free: 14.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004287/1.18, allocations: 0.588 MB / 0.5919 GB, free: 13.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006348/1.186, allocations: 2.566 MB / 0.5944 GB, free: 11.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008655/1.195, allocations: 6.456 MB / 0.6007 GB, free: 2.891 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00916/1.204, allocations: 4 MB / 0.6046 GB, free: 14.89 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001133/1.204, allocations: 40 kB / 0.6046 GB, free: 14.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.0277/1.232, allocations: 9.474 MB / 0.6139 GB, free: 5.371 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/1.232, allocations: 64 kB / 0.6139 GB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002106/1.232, allocations: 136 kB / 0.6141 GB, free: 5.176 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004165/1.237, allocations: 0.9698 MB / 0.615 GB, free: 4.203 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01014/1.247, allocations: 1.579 MB / 0.6166 GB, free: 2.621 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01379/1.261, allocations: 6.259 MB / 0.6227 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007153/1.268, allocations: 383.5 kB / 0.623 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001301/1.269, allocations: 400 kB / 0.6234 GB, free: 11.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * 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 (816): * Single equations (assignments): 810 * Array equations: 5 * 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.006263/1.275, allocations: 2.373 MB / 0.6257 GB, free: 9.074 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001153/1.277, allocations: 430.5 kB / 0.6261 GB, free: 8.648 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/1.29, allocations: 4.39 MB / 0.6304 GB, free: 4.242 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.211e-05/1.29, allocations: 31.98 kB / 0.6305 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/1.29, allocations: 4 kB / 0.6305 GB, free: 4.207 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.482e-05/1.29, allocations: 11.95 kB / 0.6305 GB, free: 4.195 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03166/1.322, allocations: 10.54 MB / 0.6408 GB, free: 9.574 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.703e-05/1.322, allocations: 4.062 kB / 0.6408 GB, free: 9.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0041/1.326, allocations: 435.3 kB / 0.6412 GB, free: 9.145 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003771/1.33, allocations: 0.7695 MB / 0.6419 GB, free: 8.375 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005191/1.331, allocations: 48 kB / 0.642 GB, free: 8.328 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01338/1.344, allocations: 5.792 MB / 0.6476 GB, free: 2.402 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.256e-05/1.344, allocations: 11.89 kB / 0.6477 GB, free: 2.391 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2881/1.632, allocations: 8.459 MB / 0.6559 GB, free: 137.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003017/1.635, allocations: 0.8425 MB / 0.6567 GB, free: 136.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001283/1.636, allocations: 47.75 kB / 0.6568 GB, free: 136.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003546/1.64, allocations: 139.7 kB / 0.6569 GB, free: 136.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007578/1.641, allocations: 148.5 kB / 0.6571 GB, free: 136.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002751/1.641, allocations: 67.94 kB / 0.6571 GB, free: 136.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007699/1.649, allocations: 3.136 MB / 0.6602 GB, free: 135.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.02e-07/1.649, allocations: 0 / 0.6602 GB, free: 135.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007902/1.657, allocations: 1.172 MB / 0.6613 GB, free: 135.6 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.01951/1.676, allocations: 10.3 MB / 0.6714 GB, free: 130 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01382/1.69, allocations: 6.243 MB / 0.6775 GB, free: 127.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.529e-06/1.69, allocations: 0 / 0.6775 GB, free: 127.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005857/1.696, allocations: 2.313 MB / 0.6797 GB, free: 126.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003905/1.7, allocations: 484 kB / 0.6802 GB, free: 126.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05464/1.755, allocations: 118 MB / 0.7954 GB, free: 4.969 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005494/1.76, allocations: 3.774 MB / 0.7991 GB, free: 1.156 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00553/1.766, allocations: 2.274 MB / 0.8014 GB, free: 14.88 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/1.766, allocations: 0 / 0.8014 GB, free: 14.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.792/6.558, allocations: 114.9 MB / 0.9135 GB, free: 68.93 MB / 442.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