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.002251/0.002251, allocations: 178.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.113/2.113, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 86.17 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2883/0.2883, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.858e-05/2.88e-05, allocations: 0 / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4388/0.4389, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.23/0.6689, allocations: 109.4 MB / 0.5728 GB, free: 5.816 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.6693, allocations: 83.45 kB / 0.5729 GB, free: 5.738 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.181/1.85, allocations: 219.2 MB / 0.787 GB, free: 19.92 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.154e-06/1.851, allocations: 3.938 kB / 0.787 GB, free: 19.92 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0007877/1.851, allocations: 235.9 kB / 0.7872 GB, free: 19.69 MB / 475.1 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.05025/1.902, allocations: 11.38 MB / 0.7983 GB, free: 8.207 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/1.902, allocations: 12.03 kB / 0.7983 GB, free: 8.195 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09599/1.998, allocations: 12.64 MB / 0.8107 GB, free: 11.52 MB / 491.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.8056/2.803, allocations: 12.56 MB / 0.8229 GB, free: 51.63 MB / 491.2 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001016/2.804, allocations: 394.7 kB / 0.8233 GB, free: 51.63 MB / 491.2 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006717/2.811, allocations: 0.7046 MB / 0.824 GB, free: 51.63 MB / 491.2 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04796/2.859, allocations: 16.73 MB / 0.8403 GB, free: 51.57 MB / 491.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06957/2.929, allocations: 24.46 MB / 0.8642 GB, free: 46.23 MB / 491.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001006/2.93, allocations: 139.2 kB / 0.8643 GB, free: 46.23 MB / 491.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005949/2.936, allocations: 58.06 kB / 0.8644 GB, free: 46.23 MB / 491.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00604/2.942, allocations: 2.682 MB / 0.867 GB, free: 46.2 MB / 491.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2523/3.194, allocations: 110.4 MB / 0.9748 GB, free: 9.488 MB / 0.5109 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02364/3.218, allocations: 10.81 MB / 0.9854 GB, free: 344 kB / 0.5109 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03427/3.252, allocations: 8.635 MB / 0.9938 GB, free: 12.28 MB / 0.5265 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004808/3.257, allocations: 2.34 MB / 0.9961 GB, free: 9.766 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/3.257, allocations: 100.3 kB / 0.9962 GB, free: 9.664 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=541): time 9.849e-06/3.257, allocations: 0 / 0.9962 GB, free: 9.664 MB / 0.5265 GB Notification: Performance of matching and sorting (n=629): time 0.6423/3.9, allocations: 57.37 MB / 1.052 GB, free: 103.4 MB / 0.5421 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001981/3.9, allocations: 325.8 kB / 1.053 GB, free: 103.1 MB / 0.5421 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.024/3.924, allocations: 7.072 MB / 1.059 GB, free: 102.5 MB / 0.5421 GB Notification: Performance of collectPreVariables (initialization): time 0.002118/3.926, allocations: 29.2 kB / 1.059 GB, free: 102.5 MB / 0.5421 GB Notification: Performance of collectInitialEqns (initialization): time 0.00766/3.934, allocations: 7.662 MB / 1.067 GB, free: 98.2 MB / 0.5421 GB Notification: Performance of collectInitialBindings (initialization): time 0.00474/3.939, allocations: 2.229 MB / 1.069 GB, free: 96.84 MB / 0.5421 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003221/3.942, allocations: 3.375 kB / 1.069 GB, free: 96.84 MB / 0.5421 GB Notification: Performance of setup shared object (initialization): time 0.001508/3.944, allocations: 0.9395 MB / 1.07 GB, free: 96.49 MB / 0.5421 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0167/3.96, allocations: 6.209 MB / 1.076 GB, free: 96.46 MB / 0.5421 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02297/3.983, allocations: 14.03 MB / 1.09 GB, free: 86.44 MB / 0.5421 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.022/4.005, allocations: 9.207 MB / 1.099 GB, free: 86.35 MB / 0.5421 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004302/4.006, allocations: 81.16 kB / 1.099 GB, free: 86.35 MB / 0.5421 GB Notification: Performance of matching and sorting (n=1922) (initialization): time 0.06481/4.071, allocations: 21.38 MB / 1.12 GB, free: 82.46 MB / 0.5421 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002413/4.071, allocations: 125.9 kB / 1.12 GB, free: 82.46 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004881/4.071, allocations: 277.7 kB / 1.12 GB, free: 82.46 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01391/4.085, allocations: 3.286 MB / 1.123 GB, free: 81.87 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02551/4.111, allocations: 3.612 MB / 1.127 GB, free: 81.47 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04353/4.155, allocations: 21.32 MB / 1.148 GB, free: 70.14 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01919/4.174, allocations: 0.605 MB / 1.148 GB, free: 70.11 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00439/4.178, allocations: 0.8392 MB / 1.149 GB, free: 70 MB / 0.5421 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1258 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1802): * Single equations (assignments): 1795 * 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%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007022/4.185, allocations: 0.8249 MB / 1.15 GB, free: 69.34 MB / 0.5421 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03959/4.225, allocations: 13.04 MB / 1.163 GB, free: 59.56 MB / 0.5421 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004244/4.229, allocations: 0.8215 MB / 1.163 GB, free: 58.73 MB / 0.5421 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04389/4.273, allocations: 13.76 MB / 1.177 GB, free: 47.62 MB / 0.5421 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001405/4.273, allocations: 65.25 kB / 1.177 GB, free: 47.55 MB / 0.5421 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.129e-05/4.273, allocations: 16 kB / 1.177 GB, free: 47.54 MB / 0.5421 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001869/4.274, allocations: 32.83 kB / 1.177 GB, free: 47.54 MB / 0.5421 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09089/4.365, allocations: 27.65 MB / 1.204 GB, free: 25.34 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-05/4.365, allocations: 4 kB / 1.204 GB, free: 25.34 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01302/4.378, allocations: 1.226 MB / 1.205 GB, free: 24.39 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01299/4.391, allocations: 2.801 MB / 1.208 GB, free: 22.43 MB / 0.5421 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002/4.393, allocations: 29.05 kB / 1.208 GB, free: 22.41 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.52/4.913, allocations: 19.66 MB / 1.227 GB, free: 93.11 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.071e-05/4.913, allocations: 5.25 kB / 1.227 GB, free: 93.11 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06458/4.977, allocations: 21.53 MB / 1.248 GB, free: 91.89 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009394/4.987, allocations: 1.837 MB / 1.25 GB, free: 91.8 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004533/4.991, allocations: 4.234 kB / 1.25 GB, free: 91.8 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01138/5.003, allocations: 391.5 kB / 1.25 GB, free: 91.8 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002757/5.006, allocations: 364.8 kB / 1.251 GB, free: 91.79 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001934/5.008, allocations: 161.9 kB / 1.251 GB, free: 91.79 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.01445/5.022, allocations: 4.769 MB / 1.256 GB, free: 91.54 MB / 0.5421 GB Notification: Performance of sort global known variables: time 1.152e-06/5.022, allocations: 0 / 1.256 GB, free: 91.54 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.02309/5.045, allocations: 2.538 MB / 1.258 GB, free: 91.54 MB / 0.5421 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (540): * Single equations (assignments): 533 * 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.06124/5.107, allocations: 22.46 MB / 1.28 GB, free: 89.62 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.03989/5.147, allocations: 15.85 MB / 1.295 GB, free: 88.04 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/5.147, allocations: 9.188 kB / 1.295 GB, free: 88.04 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.01888/5.166, allocations: 6.715 MB / 1.302 GB, free: 85.38 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01011/5.176, allocations: 0.8671 MB / 1.303 GB, free: 85.03 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1023/5.278, allocations: 28.26 MB / 1.33 GB, free: 73.71 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02281/5.301, allocations: 8.332 MB / 1.339 GB, free: 67.74 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01708/5.318, allocations: 5.891 MB / 1.344 GB, free: 62.27 MB / 0.5421 GB Notification: Performance of SimCode: time 1.744e-06/5.318, allocations: 4 kB / 1.344 GB, free: 62.27 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.969/13.29, allocations: 409.8 MB / 1.745 GB, free: 127.5 MB / 0.6046 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