Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00116/0.00116, allocations: 198.1 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.2 MB / 245 MB, free: 7.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008698/0.0008697, allocations: 103.4 kB / 297.3 MB, free: 6.156 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002527, allocations: 8 kB / 358 MB, free: 9.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2354, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1262/0.3616, allocations: 101.2 MB / 0.4987 GB, free: 5.371 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003351/0.362, allocations: 87.95 kB / 0.4988 GB, free: 5.285 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4003/0.7624, allocations: 93.44 MB / 0.59 GB, free: 20.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.7624, allocations: 0 / 0.59 GB, free: 20.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001372/0.7626, allocations: 84 kB / 0.5901 GB, free: 20.12 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.0101/0.7727, allocations: 4.782 MB / 0.5948 GB, free: 15.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.7727, allocations: 8.031 kB / 0.5948 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001432/0.7742, allocations: 0.8115 MB / 0.5956 GB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01537/0.7895, allocations: 4.428 MB / 0.5999 GB, free: 9.992 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.011/0.8006, allocations: 4.262 MB / 0.6041 GB, free: 5.668 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/0.8008, allocations: 336.8 kB / 0.6044 GB, free: 5.336 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001188/0.802, allocations: 447.8 kB / 0.6048 GB, free: 4.898 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0181/0.8201, allocations: 11.28 MB / 0.6159 GB, free: 8.566 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001231/0.8203, allocations: 63.45 kB / 0.6159 GB, free: 8.504 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005286/0.8208, allocations: 215.9 kB / 0.6161 GB, free: 8.293 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001258/0.8221, allocations: 1.097 MB / 0.6172 GB, free: 7.191 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01725/0.8394, allocations: 9.26 MB / 0.6262 GB, free: 13.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3378/1.177, allocations: 50.31 MB / 0.6754 GB, free: 63.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01046/1.188, allocations: 4.769 MB / 0.68 GB, free: 62.67 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0107/1.198, allocations: 7.269 MB / 0.6871 GB, free: 61.13 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/1.199, allocations: 53.88 kB / 0.6872 GB, free: 61.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=177): time 5.571e-06/1.199, allocations: 6.484 kB / 0.6872 GB, free: 61.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=198): time 0.04012/1.239, allocations: 17.83 MB / 0.7046 GB, free: 57.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/1.239, allocations: 184.9 kB / 0.7048 GB, free: 57.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005373/1.244, allocations: 4.077 MB / 0.7087 GB, free: 57.12 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003936/1.245, allocations: 51.98 kB / 0.7088 GB, free: 57.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001988/1.247, allocations: 3.248 MB / 0.712 GB, free: 55.47 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001029/1.248, allocations: 0.7566 MB / 0.7127 GB, free: 55.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003146/1.248, allocations: 126.6 kB / 0.7128 GB, free: 55.04 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002886/1.248, allocations: 0.5694 MB / 0.7134 GB, free: 54.72 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002868/1.251, allocations: 2.199 MB / 0.7155 GB, free: 54.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004079/1.255, allocations: 5.909 MB / 0.7213 GB, free: 49.91 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004474/1.26, allocations: 3.543 MB / 0.7248 GB, free: 49.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.468e-05/1.26, allocations: 42.22 kB / 0.7248 GB, free: 49.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=801) (initialization): time 0.01401/1.274, allocations: 8.658 MB / 0.7333 GB, free: 46.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.94e-05/1.274, allocations: 61.38 kB / 0.7333 GB, free: 46.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001366/1.274, allocations: 137.5 kB / 0.7334 GB, free: 46.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001879/1.276, allocations: 0.906 MB / 0.7343 GB, free: 46.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004523/1.281, allocations: 1.47 MB / 0.7358 GB, free: 46.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005923/1.286, allocations: 5.926 MB / 0.7416 GB, free: 43.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00529/1.292, allocations: 345.4 kB / 0.7419 GB, free: 43.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001075/1.293, allocations: 387.1 kB / 0.7422 GB, free: 43.18 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 46 (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.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 (753): * Single equations (assignments): 749 * 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.004352/1.297, allocations: 2.224 MB / 0.7444 GB, free: 42.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000858/1.298, allocations: 394.8 kB / 0.7448 GB, free: 41.63 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005198/1.303, allocations: 3.586 MB / 0.7483 GB, free: 38.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.396e-05/1.303, allocations: 20 kB / 0.7483 GB, free: 38.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/1.303, allocations: 8 kB / 0.7483 GB, free: 38.69 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/1.303, allocations: 10.31 kB / 0.7483 GB, free: 38.69 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01533/1.319, allocations: 9.125 MB / 0.7572 GB, free: 31.28 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/1.319, allocations: 7.875 kB / 0.7573 GB, free: 31.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001644/1.32, allocations: 389.2 kB / 0.7576 GB, free: 30.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001656/1.322, allocations: 0.718 MB / 0.7583 GB, free: 30.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002162/1.322, allocations: 43.95 kB / 0.7584 GB, free: 30.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005778/1.328, allocations: 5.466 MB / 0.7637 GB, free: 25.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/1.328, allocations: 11.94 kB / 0.7637 GB, free: 25.57 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007807/1.336, allocations: 7.196 MB / 0.7707 GB, free: 18.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001317/1.337, allocations: 469.4 kB / 0.7712 GB, free: 18.47 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006993/1.338, allocations: 38.31 kB / 0.7712 GB, free: 18.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00176/1.34, allocations: 118.8 kB / 0.7713 GB, free: 18.36 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003024/1.34, allocations: 124.1 kB / 0.7715 GB, free: 18.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/1.34, allocations: 59.8 kB / 0.7715 GB, free: 18.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004903/1.345, allocations: 2.916 MB / 0.7744 GB, free: 15.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.345, allocations: 0 / 0.7744 GB, free: 15.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006355/1.352, allocations: 1.062 MB / 0.7754 GB, free: 14.77 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 () * 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.008779/1.36, allocations: 9.029 MB / 0.7842 GB, free: 6.461 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007791/1.368, allocations: 5.396 MB / 0.7895 GB, free: 1.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/1.368, allocations: 3.5 kB / 0.7895 GB, free: 1.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00251/1.371, allocations: 1.911 MB / 0.7914 GB, free: 88 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004149/1.375, allocations: 0.5759 MB / 0.7919 GB, free: 0 / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3228/1.698, allocations: 129.3 MB / 0.9182 GB, free: 98.88 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0032/1.701, allocations: 3.544 MB / 0.9216 GB, free: 98.08 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004487/1.705, allocations: 2.043 MB / 0.9236 GB, free: 98.04 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002458/1.708, allocations: 2.099 MB / 0.9257 GB, free: 98.04 MB / 0.4948 GB Notification: Performance of SimCode: time 1.112e-06/1.708, allocations: 0 / 0.9257 GB, free: 98.04 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1195/1.827, allocations: 84.86 MB / 1.009 GB, free: 44.46 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001756/1.828, allocations: 231.3 kB / 1.009 GB, free: 44.21 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.534/6.362, allocations: 3.188 kB / 1.009 GB, free: 44.21 MB / 0.4948 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat