Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.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.Torque2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque2",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.00157/0.00157, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009313/0.0009313, allocations: 82.64 kB / 261.8 MB, free: 1.676 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.2014/0.2014, allocations: 43.48 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.538e-05/2.555e-05, allocations: 4 kB / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1203, allocations: 58.86 MB / 477.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4482/0.5686, allocations: 110.8 MB / 0.5742 GB, free: 0.875 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.5689, allocations: 81.92 kB / 0.5743 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8709/1.44, allocations: 235.4 MB / 0.8042 GB, free: 84.15 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.966e-06/1.44, allocations: 0 / 0.8042 GB, free: 84.15 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006048/1.44, allocations: 257.4 kB / 0.8044 GB, free: 84.14 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: 4457 * Number of variables: 4457 Notification: Performance of Generate backend data structure: time 0.03723/1.478, allocations: 12.35 MB / 0.8165 GB, free: 76.89 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/1.478, allocations: 11.62 kB / 0.8165 GB, free: 76.88 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05064/1.528, allocations: 12.82 MB / 0.829 GB, free: 65.74 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03561/1.564, allocations: 13.3 MB / 0.842 GB, free: 52.49 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008589/1.565, allocations: 428 kB / 0.8424 GB, free: 52.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006872/1.572, allocations: 0.7498 MB / 0.8431 GB, free: 51.32 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03353/1.605, allocations: 17.54 MB / 0.8603 GB, free: 33.79 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06339/1.669, allocations: 26.03 MB / 0.8857 GB, free: 5.539 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008851/1.67, allocations: 154.5 kB / 0.8858 GB, free: 5.387 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006134/1.676, allocations: 68 kB / 0.8859 GB, free: 5.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003852/1.68, allocations: 2.863 MB / 0.8887 GB, free: 2.453 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4445/2.124, allocations: 121.6 MB / 1.007 GB, free: 40.51 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01096/2.135, allocations: 10.78 MB / 1.018 GB, free: 35.52 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008059/2.143, allocations: 7.543 MB / 1.025 GB, free: 32.38 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001427/2.145, allocations: 1.097 MB / 1.026 GB, free: 31.49 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.852e-05/2.145, allocations: 94.34 kB / 1.027 GB, free: 31.41 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=548): time 9.308e-06/2.145, allocations: 3 kB / 1.027 GB, free: 31.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=636): time 0.1288/2.274, allocations: 61.51 MB / 1.087 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001926/2.274, allocations: 377.8 kB / 1.087 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01805/2.292, allocations: 8.044 MB / 1.095 GB, free: 3.246 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002089/2.294, allocations: 25.7 kB / 1.095 GB, free: 3.215 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0109/2.305, allocations: 8.708 MB / 1.103 GB, free: 11.36 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004885/2.31, allocations: 2.282 MB / 1.106 GB, free: 9.297 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003063/2.313, allocations: 0 / 1.106 GB, free: 9.297 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001477/2.315, allocations: 0.9816 MB / 1.107 GB, free: 8.5 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.013/2.328, allocations: 6.446 MB / 1.113 GB, free: 2.742 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3555/2.683, allocations: 16.33 MB / 1.129 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01727/2.701, allocations: 9.74 MB / 1.138 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0008326/2.702, allocations: 88.69 kB / 1.138 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2084) (initialization): time 0.04531/2.747, allocations: 22.81 MB / 1.161 GB, free: 122 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003642/2.747, allocations: 135.1 kB / 1.161 GB, free: 122 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005535/2.748, allocations: 307 kB / 1.161 GB, free: 122 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007972/2.756, allocations: 3.322 MB / 1.164 GB, free: 121.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01464/2.77, allocations: 3.88 MB / 1.168 GB, free: 121.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0243/2.795, allocations: 21.38 MB / 1.189 GB, free: 115 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01513/2.81, allocations: 0.6395 MB / 1.19 GB, free: 115 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006684/2.817, allocations: 0.9181 MB / 1.191 GB, free: 114.9 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1400 * Number of states: 0 () * Number of discrete variables: 120 (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],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[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],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (1964): * Single equations (assignments): 1957 * 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.006817/2.824, allocations: 0.9074 MB / 1.191 GB, free: 114.2 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02191/2.846, allocations: 13.17 MB / 1.204 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003076/2.849, allocations: 0.91 MB / 1.205 GB, free: 110.2 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.026/2.875, allocations: 13.78 MB / 1.219 GB, free: 105.4 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001256/2.875, allocations: 70.84 kB / 1.219 GB, free: 105.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.246e-05/2.875, allocations: 27.05 kB / 1.219 GB, free: 105.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001593/2.875, allocations: 30.62 kB / 1.219 GB, free: 105.4 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05328/2.928, allocations: 28.83 MB / 1.247 GB, free: 84.96 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.853e-05/2.928, allocations: 7.75 kB / 1.247 GB, free: 84.96 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006915/2.935, allocations: 1.233 MB / 1.248 GB, free: 84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006922/2.942, allocations: 2.807 MB / 1.251 GB, free: 82.03 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001939/2.944, allocations: 26.14 kB / 1.251 GB, free: 82.01 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02171/2.966, allocations: 19.79 MB / 1.27 GB, free: 64.33 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/2.966, allocations: 12 kB / 1.27 GB, free: 64.32 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03133/2.997, allocations: 23.36 MB / 1.293 GB, free: 43.59 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005854/3.003, allocations: 1.93 MB / 1.295 GB, free: 41.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003323/3.007, allocations: 8 kB / 1.295 GB, free: 41.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006685/3.013, allocations: 354 kB / 1.295 GB, free: 41.63 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001591/3.015, allocations: 394.4 kB / 1.296 GB, free: 41.38 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005572/3.016, allocations: 166.6 kB / 1.296 GB, free: 41.22 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01081/3.026, allocations: 5.44 MB / 1.301 GB, free: 36.54 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.21e-07/3.026, allocations: 0 / 1.301 GB, free: 36.54 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01989/3.046, allocations: 2.68 MB / 1.304 GB, free: 33.87 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 16 (Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (547): * Single equations (assignments): 540 * 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.3774/3.424, allocations: 24.87 MB / 1.328 GB, free: 119.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03048/3.454, allocations: 16.39 MB / 1.344 GB, free: 119 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-05/3.454, allocations: 3.375 kB / 1.344 GB, free: 119 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01095/3.465, allocations: 6.814 MB / 1.351 GB, free: 118.5 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008256/3.474, allocations: 0.9673 MB / 1.352 GB, free: 118.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07403/3.548, allocations: 28.81 MB / 1.38 GB, free: 113.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01963/3.567, allocations: 8.917 MB / 1.388 GB, free: 110.6 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01647/3.584, allocations: 5.104 MB / 1.393 GB, free: 110.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01203/3.596, allocations: 6.407 MB / 1.4 GB, free: 104.8 MB / 0.5573 GB Notification: Performance of SimCode: time 1.583e-06/3.596, allocations: 0 / 1.4 GB, free: 104.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7054/4.301, allocations: 216.2 MB / 1.611 GB, free: 97.59 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/4.302, allocations: 123.8 kB / 1.611 GB, free: 97.41 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.322/13.62, allocations: 0 / 1.611 GB, free: 97.41 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat