Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",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.002316/0.002315, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.007/2.007, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001163/0.001163, allocations: 99.47 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5153/0.5153, allocations: 43.55 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007224/0.0007224, allocations: 12 kB / 431.5 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1528, allocations: 58.84 MB / 490.3 MB, free: 10.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5061/0.6589, allocations: 106 MB / 0.5823 GB, free: 12.38 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.6592, allocations: 83.95 kB / 0.5824 GB, free: 12.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.014/1.673, allocations: 143.6 MB / 0.7226 GB, free: 83.96 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.098e-06/1.673, allocations: 0 / 0.7226 GB, free: 83.96 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006331/1.674, allocations: 144 kB / 0.7227 GB, free: 83.96 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2473 * Number of variables: 2473 Notification: Performance of Generate backend data structure: time 0.03648/1.711, allocations: 7.485 MB / 0.73 GB, free: 80.91 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.733e-05/1.711, allocations: 11.53 kB / 0.73 GB, free: 80.91 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006967/1.718, allocations: 1.238 MB / 0.7313 GB, free: 80.82 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07117/1.789, allocations: 9.527 MB / 0.7406 GB, free: 80.3 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03337/1.822, allocations: 8.894 MB / 0.7492 GB, free: 77.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000821/1.823, allocations: 0.5261 MB / 0.7498 GB, free: 77.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004769/1.828, allocations: 0.7096 MB / 0.7505 GB, free: 77.39 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05473/1.883, allocations: 16.69 MB / 0.7668 GB, free: 68.79 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007373/1.883, allocations: 99.88 kB / 0.7668 GB, free: 68.73 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004572/1.888, allocations: 345.3 kB / 0.7672 GB, free: 68.54 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003778/1.892, allocations: 1.526 MB / 0.7687 GB, free: 68.26 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.043/1.935, allocations: 13.37 MB / 0.7817 GB, free: 63.82 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1145/2.05, allocations: 72.69 MB / 0.8527 GB, free: 5.652 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4017/2.451, allocations: 5.922 MB / 0.8585 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004648/2.452, allocations: 50.11 kB / 0.8585 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.067e-05/2.452, allocations: 61.44 kB / 0.8586 GB, free: 91.53 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=249): time 6.763e-06/2.452, allocations: 0.9062 kB / 0.8586 GB, free: 91.53 MB / 0.4948 GB Notification: Performance of matching and sorting (n=267): time 0.1016/2.554, allocations: 22.88 MB / 0.8809 GB, free: 86.39 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/2.554, allocations: 265.5 kB / 0.8812 GB, free: 86.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01731/2.571, allocations: 6.219 MB / 0.8873 GB, free: 85.62 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008341/2.572, allocations: 60.5 kB / 0.8873 GB, free: 85.59 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005026/2.577, allocations: 4.808 MB / 0.892 GB, free: 83.06 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001852/2.579, allocations: 1.025 MB / 0.893 GB, free: 82.48 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001427/2.58, allocations: 173 kB / 0.8932 GB, free: 82.48 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000815/2.581, allocations: 0.6747 MB / 0.8938 GB, free: 82.15 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00908/2.59, allocations: 2.972 MB / 0.8967 GB, free: 82.13 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01439/2.605, allocations: 8.238 MB / 0.9048 GB, free: 75.32 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01348/2.618, allocations: 4.841 MB / 0.9095 GB, free: 73.76 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003655/2.619, allocations: 55.88 kB / 0.9096 GB, free: 73.76 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1125) (initialization): time 0.03383/2.653, allocations: 11.32 MB / 0.9206 GB, free: 69.84 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001861/2.653, allocations: 85.31 kB / 0.9207 GB, free: 69.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003242/2.653, allocations: 188.6 kB / 0.9209 GB, free: 69.84 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00347/2.657, allocations: 0.8402 MB / 0.9217 GB, free: 69.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01303/2.67, allocations: 1.994 MB / 0.9237 GB, free: 69.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01382/2.684, allocations: 8.642 MB / 0.9321 GB, free: 63.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0111/2.695, allocations: 485.1 kB / 0.9326 GB, free: 63.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002223/2.697, allocations: 0.5105 MB / 0.9331 GB, free: 63.23 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * Number of states: 0 () * Number of discrete variables: 57 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1059): * Single equations (assignments): 1053 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0101/2.707, allocations: 3.326 MB / 0.9363 GB, free: 61.69 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001807/2.709, allocations: 0.5873 MB / 0.9369 GB, free: 61.37 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01456/2.724, allocations: 4.555 MB / 0.9413 GB, free: 59.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.635e-05/2.724, allocations: 29.38 kB / 0.9414 GB, free: 59.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.448e-05/2.724, allocations: 12 kB / 0.9414 GB, free: 59.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000106/2.724, allocations: 12.52 kB / 0.9414 GB, free: 59.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03811/2.762, allocations: 11.72 MB / 0.9528 GB, free: 55.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-05/2.762, allocations: 0 / 0.9528 GB, free: 55.24 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004632/2.767, allocations: 435.3 kB / 0.9532 GB, free: 55.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002736/2.769, allocations: 0.5281 MB / 0.9537 GB, free: 55.07 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006532/2.77, allocations: 47.27 kB / 0.9538 GB, free: 55.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0128/2.783, allocations: 7.724 MB / 0.9613 GB, free: 49.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/2.783, allocations: 3.906 kB / 0.9613 GB, free: 49.43 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02116/2.804, allocations: 8.045 MB / 0.9692 GB, free: 45.86 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00445/2.809, allocations: 1.008 MB / 0.9702 GB, free: 45.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002264/2.811, allocations: 43.28 kB / 0.9702 GB, free: 45.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005593/2.817, allocations: 152.4 kB / 0.9704 GB, free: 45.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001098/2.818, allocations: 155.9 kB / 0.9705 GB, free: 45.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005118/2.818, allocations: 70.25 kB / 0.9706 GB, free: 45.16 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01864/2.837, allocations: 4.442 MB / 0.9749 GB, free: 43.69 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.362e-06/2.837, allocations: 0 / 0.9749 GB, free: 43.69 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01834/2.855, allocations: 1.563 MB / 0.9764 GB, free: 43.52 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,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 (219): * Single equations (assignments): 213 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02869/2.884, allocations: 8.891 MB / 0.9851 GB, free: 35.71 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02269/2.907, allocations: 7.497 MB / 0.9924 GB, free: 29.11 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/2.907, allocations: 0 / 0.9924 GB, free: 29.11 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008016/2.915, allocations: 2.54 MB / 0.9949 GB, free: 26.84 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008927/2.924, allocations: 0.7695 MB / 0.9957 GB, free: 26.19 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6074/3.531, allocations: 192 MB / 1.183 GB, free: 28.01 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01486/3.546, allocations: 5.215 MB / 1.188 GB, free: 27.13 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009422/3.556, allocations: 3.438 MB / 1.192 GB, free: 27.13 MB / 0.5573 GB Notification: Performance of SimCode: time 1.813e-06/3.556, allocations: 0 / 1.192 GB, free: 27.13 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.207/9.763, allocations: 222.1 MB / 1.409 GB, free: 63.98 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat does not exist to compare? outputFormat=mat