Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002205/0.002204, allocations: 181.6 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.207/2.207, 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.001127/0.001126, allocations: 86.7 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.282/0.282, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.332e-05/3.35e-05, allocations: 4 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 58.86 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5669/0.6831, allocations: 111.5 MB / 0.5817 GB, free: 8.004 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.6835, allocations: 79.98 kB / 0.5818 GB, free: 7.965 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.319/2.002, allocations: 241.4 MB / 0.8175 GB, free: 76.04 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.104e-06/2.002, allocations: 0 / 0.8175 GB, free: 76.04 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0008924/2.003, allocations: 255.9 kB / 0.8178 GB, free: 75.79 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.05394/2.057, allocations: 12.36 MB / 0.8299 GB, free: 63.32 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.11e-05/2.057, allocations: 8.031 kB / 0.8299 GB, free: 63.32 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01123/2.069, allocations: 2.2 MB / 0.832 GB, free: 61.1 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.095/2.164, allocations: 12.82 MB / 0.8445 GB, free: 48.24 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04766/2.211, allocations: 13.32 MB / 0.8575 GB, free: 34.82 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001205/2.213, allocations: 0.9548 MB / 0.8585 GB, free: 33.86 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007048/2.22, allocations: 1.273 MB / 0.8597 GB, free: 32.59 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09731/2.317, allocations: 29.95 MB / 0.889 GB, free: 368 kB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009174/2.318, allocations: 150.5 kB / 0.8891 GB, free: 216 kB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006462/2.325, allocations: 0.5935 MB / 0.8897 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007655/2.332, allocations: 2.868 MB / 0.8925 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5118/2.844, allocations: 24.31 MB / 0.9162 GB, free: 77.91 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2235/3.068, allocations: 127.9 MB / 1.041 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06203/3.13, allocations: 13.95 MB / 1.055 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01639/3.146, allocations: 7.958 MB / 1.062 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06972/3.216, allocations: 20.5 MB / 1.083 GB, free: 0 / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001922/3.216, allocations: 105.9 kB / 1.083 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=562): time 9.448e-06/3.216, allocations: 4 kB / 1.083 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of matching and sorting (n=646): time 0.8893/4.106, allocations: 59.16 MB / 1.14 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002517/4.106, allocations: 382.3 kB / 1.141 GB, free: 119.8 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04705/4.153, allocations: 10.63 MB / 1.151 GB, free: 119 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.002431/4.156, allocations: 125.1 kB / 1.151 GB, free: 119 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.01124/4.167, allocations: 8.023 MB / 1.159 GB, free: 115 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.005615/4.173, allocations: 2.38 MB / 1.161 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003817/4.176, allocations: 315.9 kB / 1.162 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.002354/4.179, allocations: 0.9713 MB / 1.163 GB, free: 113.2 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02487/4.204, allocations: 6.625 MB / 1.169 GB, free: 113.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03491/4.239, allocations: 15.07 MB / 1.184 GB, free: 102.5 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03592/4.275, allocations: 9.889 MB / 1.194 GB, free: 101.5 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005716/4.275, allocations: 87.16 kB / 1.194 GB, free: 101.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2020) (initialization): time 0.1079/4.383, allocations: 24.06 MB / 1.217 GB, free: 93.84 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005074/4.384, allocations: 137.7 kB / 1.217 GB, free: 93.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008822/4.385, allocations: 294.1 kB / 1.218 GB, free: 93.84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02157/4.406, allocations: 3.31 MB / 1.221 GB, free: 93.24 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02622/4.433, allocations: 3.767 MB / 1.224 GB, free: 92.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0449/4.478, allocations: 22.59 MB / 1.246 GB, free: 77.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02135/4.499, allocations: 0.9331 MB / 1.247 GB, free: 76.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004276/4.503, allocations: 0.8866 MB / 1.248 GB, free: 75.95 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1346 * 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 (1900): * Single equations (assignments): 1893 * 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.00732/4.511, allocations: 1.283 MB / 1.25 GB, free: 74.66 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003748/4.514, allocations: 1.084 MB / 1.251 GB, free: 73.57 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04582/4.56, allocations: 14.6 MB / 1.265 GB, free: 61.74 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001084/4.56, allocations: 68 kB / 1.265 GB, free: 61.67 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.315e-05/4.561, allocations: 16 kB / 1.265 GB, free: 61.66 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001782/4.561, allocations: 28.22 kB / 1.265 GB, free: 61.66 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1016/4.662, allocations: 32.42 MB / 1.297 GB, free: 35.51 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001025/4.662, allocations: 8 kB / 1.297 GB, free: 35.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.013/4.676, allocations: 1.283 MB / 1.298 GB, free: 34.52 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01317/4.689, allocations: 2.832 MB / 1.301 GB, free: 32.53 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001971/4.691, allocations: 123.4 kB / 1.301 GB, free: 32.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04293/4.734, allocations: 21.08 MB / 1.321 GB, free: 13.53 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.375e-05/4.734, allocations: 19.94 kB / 1.321 GB, free: 13.51 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5122/5.246, allocations: 26.07 MB / 1.347 GB, free: 108.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01041/5.256, allocations: 2.19 MB / 1.349 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005548/5.262, allocations: 122.8 kB / 1.349 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01276/5.275, allocations: 448.7 kB / 1.349 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002844/5.278, allocations: 409 kB / 1.35 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002025/5.28, allocations: 166.3 kB / 1.35 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.02334/5.303, allocations: 7.661 MB / 1.358 GB, free: 108.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.71e-07/5.303, allocations: 3.719 kB / 1.358 GB, free: 108.4 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02318/5.326, allocations: 3.106 MB / 1.361 GB, free: 108.4 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (553): * Single equations (assignments): 546 * 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.06862/5.395, allocations: 27.21 MB / 1.387 GB, free: 101.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.04332/5.439, allocations: 16.59 MB / 1.403 GB, free: 96.07 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.779e-05/5.439, allocations: 2.094 kB / 1.403 GB, free: 96.07 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01937/5.458, allocations: 7.012 MB / 1.41 GB, free: 93.38 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01338/5.471, allocations: 1.337 MB / 1.411 GB, free: 92.81 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1088/5.58, allocations: 31.27 MB / 1.442 GB, free: 70.97 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02525/5.606, allocations: 8.898 MB / 1.451 GB, free: 64.61 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01838/5.624, allocations: 6.537 MB / 1.457 GB, free: 58.52 MB / 0.5573 GB Notification: Performance of SimCode: time 1.523e-06/5.624, allocations: 0 / 1.457 GB, free: 58.52 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.037/14.66, allocations: 451.5 MB / 1.898 GB, free: 97.29 MB / 0.6198 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat