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.002096/0.002096, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.096/2.096, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001084/0.001084, allocations: 89.97 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3215/0.3215, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.511e-05/3.534e-05, allocations: 8 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1185, allocations: 58.84 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5218/0.6403, allocations: 107.4 MB / 0.5778 GB, free: 12.32 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.6407, allocations: 83.61 kB / 0.5779 GB, free: 12.29 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9722/1.613, allocations: 133.6 MB / 0.7083 GB, free: 94.96 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.476e-06/1.613, allocations: 0 / 0.7083 GB, free: 94.96 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0008035/1.614, allocations: 132 kB / 0.7085 GB, free: 94.96 MB / 0.4948 GB 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.04086/1.655, allocations: 6.444 MB / 0.7147 GB, free: 94.12 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.941e-05/1.655, allocations: 11.72 kB / 0.7148 GB, free: 94.12 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008135/1.663, allocations: 1.199 MB / 0.7159 GB, free: 94.02 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0788/1.742, allocations: 7.133 MB / 0.7229 GB, free: 93.56 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03549/1.777, allocations: 7.251 MB / 0.73 GB, free: 92.81 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008145/1.778, allocations: 0.5086 MB / 0.7305 GB, free: 92.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004124/1.782, allocations: 0.6693 MB / 0.7311 GB, free: 92.79 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0524/1.835, allocations: 16.62 MB / 0.7474 GB, free: 89.14 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005488/1.835, allocations: 88.27 kB / 0.7474 GB, free: 89.13 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003639/1.839, allocations: 323.4 kB / 0.7477 GB, free: 89.13 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003453/1.843, allocations: 1.561 MB / 0.7493 GB, free: 89.12 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04385/1.886, allocations: 13.78 MB / 0.7627 GB, free: 89.06 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1141/2.001, allocations: 70.25 MB / 0.8313 GB, free: 39.82 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03301/2.034, allocations: 7.837 MB / 0.839 GB, free: 35.37 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007757/2.042, allocations: 3.89 MB / 0.8428 GB, free: 31.82 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003659/2.042, allocations: 61.36 kB / 0.8428 GB, free: 31.77 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.679e-05/2.042, allocations: 60.28 kB / 0.8429 GB, free: 31.71 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=290): time 6.963e-06/2.042, allocations: 0 / 0.8429 GB, free: 31.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=332): time 0.1195/2.162, allocations: 28.27 MB / 0.8705 GB, free: 8.609 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.363e-05/2.162, allocations: 221.5 kB / 0.8707 GB, free: 8.352 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01147/2.173, allocations: 5.586 MB / 0.8762 GB, free: 3.402 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001063/2.174, allocations: 77.7 kB / 0.8762 GB, free: 3.32 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003864/2.178, allocations: 4.378 MB / 0.8805 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002456/2.181, allocations: 1.239 MB / 0.8817 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001122/2.182, allocations: 168 kB / 0.8819 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006738/2.182, allocations: 0.6806 MB / 0.8826 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01033/2.193, allocations: 3.711 MB / 0.8862 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01557/2.208, allocations: 8.542 MB / 0.8945 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0147/2.223, allocations: 5.562 MB / 0.9 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000164/2.223, allocations: 51.94 kB / 0.9 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.4137/2.637, allocations: 13.38 MB / 0.9131 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001384/2.637, allocations: 78.02 kB / 0.9131 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002974/2.638, allocations: 172 kB / 0.9133 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008221/2.646, allocations: 1.688 MB / 0.915 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01592/2.662, allocations: 2.093 MB / 0.917 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02431/2.686, allocations: 11.34 MB / 0.9281 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01148/2.698, allocations: 0.5195 MB / 0.9286 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002551/2.7, allocations: 0.5016 MB / 0.9291 GB, free: 107.7 MB / 0.5261 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 () * 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.004167/2.705, allocations: 0.749 MB / 0.9298 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001632/2.706, allocations: 0.5592 MB / 0.9303 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02325/2.73, allocations: 7.435 MB / 0.9376 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.159e-05/2.73, allocations: 35.91 kB / 0.9376 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.241e-05/2.73, allocations: 14.98 kB / 0.9377 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.414e-05/2.73, allocations: 15 kB / 0.9377 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04979/2.78, allocations: 16.28 MB / 0.9536 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.662e-05/2.78, allocations: 0 / 0.9536 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007053/2.787, allocations: 0.6499 MB / 0.9542 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006526/2.793, allocations: 1.424 MB / 0.9556 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001093/2.795, allocations: 59.47 kB / 0.9556 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02121/2.816, allocations: 10.6 MB / 0.966 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.605e-06/2.816, allocations: 7.25 kB / 0.966 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03218/2.848, allocations: 12.71 MB / 0.9784 GB, free: 97.94 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005162/2.853, allocations: 1.21 MB / 0.9796 GB, free: 97.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00242/2.856, allocations: 60.38 kB / 0.9797 GB, free: 97.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006855/2.863, allocations: 272.9 kB / 0.9799 GB, free: 97.32 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001486/2.864, allocations: 196.6 kB / 0.9801 GB, free: 97.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005736/2.865, allocations: 91.05 kB / 0.9802 GB, free: 97.27 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01078/2.876, allocations: 3.964 MB / 0.9841 GB, free: 95.89 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.112e-06/2.876, allocations: 0 / 0.9841 GB, free: 95.89 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01186/2.887, allocations: 1.669 MB / 0.9857 GB, free: 95.71 MB / 0.5261 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 () * 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.03315/2.921, allocations: 14.07 MB / 0.9994 GB, free: 89.08 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02213/2.943, allocations: 9.191 MB / 1.008 GB, free: 86.11 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/2.943, allocations: 6.469 kB / 1.008 GB, free: 86.11 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01089/2.954, allocations: 3.807 MB / 1.012 GB, free: 83.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006241/2.96, allocations: 0.688 MB / 1.013 GB, free: 82.73 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05236/3.013, allocations: 16.36 MB / 1.029 GB, free: 68.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01112/3.024, allocations: 4.996 MB / 1.034 GB, free: 65.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008665/3.032, allocations: 3.24 MB / 1.037 GB, free: 62.11 MB / 0.5261 GB Notification: Performance of SimCode: time 2.164e-06/3.032, allocations: 0 / 1.037 GB, free: 62.11 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.733/8.766, allocations: 188.9 MB / 1.221 GB, free: 53.99 MB / 0.5261 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