Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.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.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",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.001537/0.001537, allocations: 185.8 kB / 16.41 MB, free: 5.727 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.036/2.036, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001168/0.001168, allocations: 100 kB / 270.9 MB, free: 8.363 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.5306/0.5306, allocations: 43.57 MB / 362.7 MB, free: 52.25 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004858/0.0004859, allocations: 12 kB / 431.5 MB, free: 6.055 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1365, allocations: 58.84 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5133/0.6498, allocations: 107.5 MB / 0.5838 GB, free: 10.96 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003154/0.6502, allocations: 79.97 kB / 0.5839 GB, free: 10.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9169/1.567, allocations: 133.5 MB / 0.7142 GB, free: 84.6 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.579e-06/1.567, allocations: 2.625 kB / 0.7142 GB, free: 84.6 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005013/1.568, allocations: 131.4 kB / 0.7144 GB, free: 84.59 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: 2413 * Number of variables: 2413 Notification: Performance of Generate backend data structure: time 0.03319/1.601, allocations: 6.91 MB / 0.7211 GB, free: 81.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/1.601, allocations: 9.656 kB / 0.7211 GB, free: 81.8 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006275/1.607, allocations: 1.203 MB / 0.7223 GB, free: 81.7 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05483/1.662, allocations: 7.126 MB / 0.7293 GB, free: 81.23 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02715/1.689, allocations: 7.292 MB / 0.7364 GB, free: 80.35 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000712/1.69, allocations: 0.5002 MB / 0.7369 GB, free: 80.33 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004211/1.694, allocations: 0.6653 MB / 0.7375 GB, free: 80.33 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05358/1.748, allocations: 16.75 MB / 0.7539 GB, free: 72.23 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004384/1.748, allocations: 87.81 kB / 0.754 GB, free: 72.18 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002722/1.751, allocations: 325 kB / 0.7543 GB, free: 72 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00454/1.756, allocations: 1.568 MB / 0.7558 GB, free: 71.71 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06723/1.823, allocations: 13.98 MB / 0.7695 GB, free: 67.41 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1087/1.932, allocations: 70.24 MB / 0.8381 GB, free: 4.668 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03651/1.968, allocations: 7.924 MB / 0.8458 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004387/1.969, allocations: 56.81 kB / 0.8458 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.447e-05/1.969, allocations: 68.5 kB / 0.8459 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=290): time 7.274e-06/1.969, allocations: 0 / 0.8459 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of matching and sorting (n=332): time 0.5343/2.503, allocations: 32.73 MB / 0.8779 GB, free: 90.81 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/2.503, allocations: 219.5 kB / 0.8781 GB, free: 90.59 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01612/2.52, allocations: 5.652 MB / 0.8836 GB, free: 90.12 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001147/2.521, allocations: 76.12 kB / 0.8837 GB, free: 90.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00447/2.525, allocations: 4.388 MB / 0.888 GB, free: 87.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002499/2.528, allocations: 1.238 MB / 0.8892 GB, free: 87.04 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001737/2.53, allocations: 170.9 kB / 0.8893 GB, free: 87.04 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009189/2.531, allocations: 0.6718 MB / 0.89 GB, free: 86.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01073/2.541, allocations: 3.795 MB / 0.8937 GB, free: 86.68 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01608/2.557, allocations: 8.63 MB / 0.9021 GB, free: 80.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01707/2.575, allocations: 5.606 MB / 0.9076 GB, free: 78.68 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004433/2.575, allocations: 48.97 kB / 0.9076 GB, free: 78.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.04354/2.619, allocations: 13.54 MB / 0.9209 GB, free: 74.17 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001974/2.619, allocations: 75.38 kB / 0.9209 GB, free: 74.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003914/2.619, allocations: 175.4 kB / 0.9211 GB, free: 74.17 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00749/2.627, allocations: 1.685 MB / 0.9228 GB, free: 73.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01479/2.642, allocations: 2.089 MB / 0.9248 GB, free: 73.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02313/2.665, allocations: 11.69 MB / 0.9362 GB, free: 67.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01239/2.677, allocations: 0.5249 MB / 0.9367 GB, free: 67.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002698/2.68, allocations: 0.498 MB / 0.9372 GB, free: 67.24 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 773 * Number of states: 0 () * Number of discrete variables: 54 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1050): * Single equations (assignments): 1045 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01074/2.691, allocations: 3.169 MB / 0.9403 GB, free: 65.76 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00236/2.693, allocations: 0.5585 MB / 0.9408 GB, free: 65.45 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02635/2.72, allocations: 7.523 MB / 0.9482 GB, free: 62.66 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.44e-05/2.72, allocations: 31.94 kB / 0.9482 GB, free: 62.66 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.344e-05/2.72, allocations: 12.31 kB / 0.9482 GB, free: 62.66 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.744e-05/2.72, allocations: 15.33 kB / 0.9482 GB, free: 62.66 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05339/2.773, allocations: 16.36 MB / 0.9642 GB, free: 56.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.545e-05/2.773, allocations: 3.75 kB / 0.9642 GB, free: 56.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006987/2.78, allocations: 0.6513 MB / 0.9649 GB, free: 56.63 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006799/2.787, allocations: 1.419 MB / 0.9662 GB, free: 56.35 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001201/2.789, allocations: 62.23 kB / 0.9663 GB, free: 56.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02238/2.811, allocations: 10.93 MB / 0.977 GB, free: 48.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/2.811, allocations: 4 kB / 0.977 GB, free: 48.34 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03228/2.843, allocations: 12.85 MB / 0.9895 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005218/2.849, allocations: 1.212 MB / 0.9907 GB, free: 35.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002802/2.852, allocations: 59.95 kB / 0.9908 GB, free: 35.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00683/2.858, allocations: 272 kB / 0.991 GB, free: 35.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001614/2.86, allocations: 207.3 kB / 0.9912 GB, free: 35.49 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006993/2.861, allocations: 87.89 kB / 0.9913 GB, free: 35.41 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01367/2.874, allocations: 4.014 MB / 0.9952 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.92e-07/2.875, allocations: 3.375 kB / 0.9952 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01924/2.894, allocations: 1.677 MB / 0.9969 GB, free: 30.44 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (278): * Single equations (assignments): 273 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0525/2.946, allocations: 14.21 MB / 1.011 GB, free: 17.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03427/2.981, allocations: 9.343 MB / 1.02 GB, free: 9.559 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.615e-05/2.981, allocations: 4 kB / 1.02 GB, free: 9.555 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01663/2.997, allocations: 3.851 MB / 1.024 GB, free: 6.188 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008783/3.006, allocations: 0.6649 MB / 1.024 GB, free: 5.621 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.704/3.71, allocations: 180.8 MB / 1.201 GB, free: 29.14 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01445/3.725, allocations: 4.994 MB / 1.206 GB, free: 28.26 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01022/3.735, allocations: 3.239 MB / 1.209 GB, free: 27.79 MB / 0.573 GB Notification: Performance of SimCode: time 1.803e-06/3.735, allocations: 0 / 1.209 GB, free: 27.79 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.96/9.695, allocations: 189.2 MB / 1.394 GB, free: 113.5 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat does not exist to compare? outputFormat=mat