Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.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.Torque3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque3",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.001503/0.001508, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.951/1.951, 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.001219/0.001218, allocations: 101 kB / 270.9 MB, free: 8.367 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.5146/0.5146, allocations: 43.54 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006613/0.0006614, allocations: 20 kB / 431.5 MB, free: 6.07 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1332, allocations: 58.85 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5138/0.6471, allocations: 110.1 MB / 0.5863 GB, free: 8.508 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/0.6475, allocations: 87.14 kB / 0.5864 GB, free: 8.426 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.209/1.856, allocations: 224.5 MB / 0.8057 GB, free: 43.18 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.487e-06/1.856, allocations: 0 / 0.8057 GB, free: 43.18 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007638/1.857, allocations: 236 kB / 0.8059 GB, free: 42.95 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: 4187 * Number of variables: 4187 Notification: Performance of Generate backend data structure: time 0.05538/1.912, allocations: 12.29 MB / 0.8179 GB, free: 30.55 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/1.912, allocations: 8.031 kB / 0.8179 GB, free: 30.55 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01032/1.923, allocations: 2.076 MB / 0.82 GB, free: 28.46 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0915/2.014, allocations: 12.63 MB / 0.8323 GB, free: 15.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04363/2.058, allocations: 12.62 MB / 0.8446 GB, free: 3.09 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001127/2.059, allocations: 0.9026 MB / 0.8455 GB, free: 2.184 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006813/2.066, allocations: 1.206 MB / 0.8467 GB, free: 0.9766 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.8533/2.919, allocations: 28.39 MB / 0.8744 GB, free: 52.02 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001144/2.921, allocations: 131.2 kB / 0.8745 GB, free: 52.02 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006334/2.927, allocations: 0.5591 MB / 0.8751 GB, free: 52.02 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006366/2.933, allocations: 2.679 MB / 0.8777 GB, free: 52 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08517/3.019, allocations: 23.57 MB / 0.9007 GB, free: 51.9 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2166/3.235, allocations: 117 MB / 1.015 GB, free: 12.46 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06188/3.297, allocations: 13.74 MB / 1.028 GB, free: 8.484 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004385/3.302, allocations: 2.344 MB / 1.031 GB, free: 6.426 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001522/3.302, allocations: 95.47 kB / 1.031 GB, free: 6.348 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=559): time 1.119e-05/3.302, allocations: 0 / 1.031 GB, free: 6.348 MB / 0.5262 GB Notification: Performance of matching and sorting (n=643): time 0.7153/4.017, allocations: 62.6 MB / 1.092 GB, free: 98.67 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001562/4.017, allocations: 332.8 kB / 1.092 GB, free: 98.35 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02644/4.044, allocations: 9.089 MB / 1.101 GB, free: 97.67 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.002042/4.046, allocations: 123.9 kB / 1.101 GB, free: 97.64 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.007749/4.054, allocations: 7.321 MB / 1.108 GB, free: 93.72 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.00463/4.058, allocations: 2.339 MB / 1.111 GB, free: 92.33 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003617/4.062, allocations: 289.5 kB / 1.111 GB, free: 92.33 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0021/4.064, allocations: 0.9164 MB / 1.112 GB, free: 91.98 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01968/4.084, allocations: 6.531 MB / 1.118 GB, free: 91.95 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02477/4.109, allocations: 14.11 MB / 1.132 GB, free: 82.33 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02334/4.132, allocations: 9.421 MB / 1.141 GB, free: 80.09 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003543/4.132, allocations: 79.05 kB / 1.141 GB, free: 80.09 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1864) (initialization): time 0.07075/4.203, allocations: 23.12 MB / 1.164 GB, free: 72.55 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002409/4.204, allocations: 120 kB / 1.164 GB, free: 72.55 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004943/4.204, allocations: 264.8 kB / 1.164 GB, free: 72.55 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01445/4.219, allocations: 3.273 MB / 1.167 GB, free: 71.96 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02455/4.243, allocations: 3.501 MB / 1.171 GB, free: 71.58 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04427/4.287, allocations: 23.22 MB / 1.193 GB, free: 58.62 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01927/4.307, allocations: 0.8692 MB / 1.194 GB, free: 57.92 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004154/4.311, allocations: 0.8114 MB / 1.195 GB, free: 57.14 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1204 * Number of states: 0 () * Number of discrete variables: 108 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[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],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1744): * Single equations (assignments): 1737 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01723/4.328, allocations: 5.332 MB / 1.2 GB, free: 52.46 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004174/4.332, allocations: 0.9449 MB / 1.201 GB, free: 51.5 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04919/4.382, allocations: 14.61 MB / 1.216 GB, free: 39.66 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000101/4.382, allocations: 74.23 kB / 1.216 GB, free: 39.59 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-05/4.382, allocations: 18.3 kB / 1.216 GB, free: 39.57 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001797/4.382, allocations: 29.52 kB / 1.216 GB, free: 39.57 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1042/4.486, allocations: 31.29 MB / 1.246 GB, free: 14.41 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001085/4.487, allocations: 8 kB / 1.246 GB, free: 14.4 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01292/4.499, allocations: 1.215 MB / 1.247 GB, free: 13.45 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01382/4.513, allocations: 2.841 MB / 1.25 GB, free: 11.47 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00231/4.516, allocations: 115.8 kB / 1.25 GB, free: 11.36 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4837/4.999, allocations: 21.82 MB / 1.272 GB, free: 104.9 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.02e-05/5, allocations: 7.938 kB / 1.272 GB, free: 104.9 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0692/5.069, allocations: 24.02 MB / 1.295 GB, free: 102 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009344/5.078, allocations: 2.036 MB / 1.297 GB, free: 101.9 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005136/5.083, allocations: 115.3 kB / 1.297 GB, free: 101.9 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01233/5.096, allocations: 490.3 kB / 1.298 GB, free: 101.9 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003073/5.099, allocations: 393.2 kB / 1.298 GB, free: 101.9 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002761/5.102, allocations: 163.6 kB / 1.298 GB, free: 101.9 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.02126/5.123, allocations: 6.529 MB / 1.305 GB, free: 101.6 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.613e-06/5.123, allocations: 3.906 kB / 1.305 GB, free: 101.6 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.02779/5.151, allocations: 2.934 MB / 1.307 GB, free: 101.6 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,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 (554): * Single equations (assignments): 547 * 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 {(4,75.0%) 18,(4,75.0%) 18,(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.07357/5.225, allocations: 25.22 MB / 1.332 GB, free: 96.63 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.04083/5.265, allocations: 16.29 MB / 1.348 GB, free: 91.34 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-05/5.265, allocations: 2.328 kB / 1.348 GB, free: 91.34 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.02297/5.288, allocations: 7.16 MB / 1.355 GB, free: 88.6 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01195/5.3, allocations: 1.189 MB / 1.356 GB, free: 88.1 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7967/6.097, allocations: 309.6 MB / 1.658 GB, free: 10.39 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02374/6.121, allocations: 8.319 MB / 1.667 GB, free: 9.367 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01877/6.14, allocations: 5.977 MB / 1.672 GB, free: 9.363 MB / 0.6043 GB Notification: Performance of SimCode: time 2.635e-06/6.14, allocations: 3.875 kB / 1.672 GB, free: 9.363 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.638/14.78, allocations: 419.4 MB / 2.082 GB, free: 86.89 MB / 0.6043 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat