Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.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.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",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.00156/0.00156, 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.107/2.107, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001134/0.001134, allocations: 96.41 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.5198/0.5198, allocations: 43.55 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000481/0.0004812, allocations: 16 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1359, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5107/0.6467, allocations: 105.8 MB / 0.5821 GB, free: 12.81 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/0.647, allocations: 71.97 kB / 0.5822 GB, free: 12.74 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.032/1.679, allocations: 171 MB / 0.7492 GB, free: 79.84 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.825e-06/1.68, allocations: 0 / 0.7492 GB, free: 79.84 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006802/1.68, allocations: 173.7 kB / 0.7493 GB, free: 79.83 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: 2951 * Number of variables: 2951 Notification: Performance of Generate backend data structure: time 0.04054/1.721, allocations: 9.047 MB / 0.7582 GB, free: 75.5 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/1.721, allocations: 14.72 kB / 0.7582 GB, free: 75.5 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00782/1.729, allocations: 1.469 MB / 0.7596 GB, free: 74.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08771/1.816, allocations: 12.08 MB / 0.7714 GB, free: 70.36 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03861/1.855, allocations: 11.01 MB / 0.7822 GB, free: 64.37 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008739/1.856, allocations: 0.6368 MB / 0.7828 GB, free: 64.12 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005153/1.861, allocations: 0.8516 MB / 0.7836 GB, free: 63.86 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06551/1.927, allocations: 20.01 MB / 0.8032 GB, free: 43.21 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007504/1.928, allocations: 114.9 kB / 0.8033 GB, free: 43.1 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004407/1.932, allocations: 406.4 kB / 0.8037 GB, free: 42.75 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004054/1.936, allocations: 1.816 MB / 0.8054 GB, free: 40.93 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05243/1.989, allocations: 16.29 MB / 0.8214 GB, free: 24.63 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5514/2.54, allocations: 82.2 MB / 0.9016 GB, free: 50.31 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03523/2.575, allocations: 8.134 MB / 0.9096 GB, free: 49.62 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001106/2.576, allocations: 0.6734 MB / 0.9102 GB, free: 49.05 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.411e-05/2.577, allocations: 71.22 kB / 0.9103 GB, free: 49.02 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=311): time 7.314e-06/2.577, allocations: 3.469 kB / 0.9103 GB, free: 49.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=335): time 0.1583/2.735, allocations: 30.95 MB / 0.9405 GB, free: 41.94 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/2.735, allocations: 299.7 kB / 0.9408 GB, free: 41.62 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01933/2.754, allocations: 6.898 MB / 0.9475 GB, free: 41.07 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009653/2.755, allocations: 79.55 kB / 0.9476 GB, free: 41.04 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005727/2.761, allocations: 5.544 MB / 0.953 GB, free: 37.97 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002305/2.764, allocations: 1.262 MB / 0.9543 GB, free: 37.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001846/2.765, allocations: 199.1 kB / 0.9545 GB, free: 37.25 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001036/2.766, allocations: 0.7225 MB / 0.9552 GB, free: 36.91 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009998/2.777, allocations: 3.526 MB / 0.9586 GB, free: 35.79 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01424/2.791, allocations: 9.227 MB / 0.9676 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01366/2.805, allocations: 5.565 MB / 0.973 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002848/2.805, allocations: 57.31 kB / 0.9731 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1262) (initialization): time 0.03733/2.842, allocations: 13.06 MB / 0.9859 GB, free: 20.67 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001619/2.842, allocations: 89.25 kB / 0.9859 GB, free: 20.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003588/2.843, allocations: 202.2 kB / 0.9861 GB, free: 20.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00443/2.847, allocations: 1.062 MB / 0.9872 GB, free: 20.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01485/2.862, allocations: 2.25 MB / 0.9894 GB, free: 20.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02011/2.882, allocations: 11.48 MB / 1.001 GB, free: 12.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01241/2.895, allocations: 0.5285 MB / 1.001 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002578/2.897, allocations: 0.5763 MB / 1.002 GB, free: 11.96 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 915 * Number of states: 0 () * Number of discrete variables: 66 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[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 (1182): * Single equations (assignments): 1175 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01157/2.909, allocations: 3.876 MB / 1.005 GB, free: 10.18 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002153/2.911, allocations: 0.6825 MB / 1.006 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01951/2.931, allocations: 6.046 MB / 1.012 GB, free: 7.438 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-05/2.931, allocations: 38.53 kB / 1.012 GB, free: 7.438 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.836e-05/2.931, allocations: 9.375 kB / 1.012 GB, free: 7.438 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001005/2.931, allocations: 23.94 kB / 1.012 GB, free: 7.434 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05354/2.985, allocations: 15.12 MB / 1.027 GB, free: 11.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.408e-05/2.985, allocations: 2.562 kB / 1.027 GB, free: 11.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006248/2.991, allocations: 0.5577 MB / 1.027 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003912/2.995, allocations: 0.7061 MB / 1.028 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009734/2.996, allocations: 62.38 kB / 1.028 GB, free: 10.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01987/3.016, allocations: 10.32 MB / 1.038 GB, free: 0.9609 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/3.016, allocations: 7.938 kB / 1.038 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02898/3.045, allocations: 10.21 MB / 1.048 GB, free: 7.852 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005504/3.05, allocations: 1.188 MB / 1.049 GB, free: 6.738 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002662/3.053, allocations: 60.58 kB / 1.049 GB, free: 6.684 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006684/3.06, allocations: 187.7 kB / 1.05 GB, free: 6.559 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001369/3.061, allocations: 200.8 kB / 1.05 GB, free: 6.434 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009319/3.062, allocations: 83.33 kB / 1.05 GB, free: 6.355 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01574/3.078, allocations: 4.938 MB / 1.055 GB, free: 2.305 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.81e-07/3.078, allocations: 0 / 1.055 GB, free: 2.305 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01461/3.093, allocations: 1.864 MB / 1.057 GB, free: 456 kB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(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.03044/3.123, allocations: 11.17 MB / 1.067 GB, free: 6.418 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.4091/3.532, allocations: 9.029 MB / 1.076 GB, free: 142 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/3.532, allocations: 3.438 kB / 1.076 GB, free: 142 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009159/3.542, allocations: 3.239 MB / 1.079 GB, free: 141.6 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009107/3.551, allocations: 0.9311 MB / 1.08 GB, free: 141.6 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2401/3.791, allocations: 214.7 MB / 1.29 GB, free: 9.012 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01729/3.808, allocations: 6.138 MB / 1.296 GB, free: 7.07 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01236/3.821, allocations: 4.164 MB / 1.3 GB, free: 3.672 MB / 0.6042 GB Notification: Performance of SimCode: time 1.142e-06/3.821, allocations: 0 / 1.3 GB, free: 3.672 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.389/11.21, allocations: 297.1 MB / 1.59 GB, free: 180.4 MB / 0.6042 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat does not exist to compare? outputFormat=mat