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.002162/0.002162, allocations: 189.2 kB / 16.41 MB, free: 5.723 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.095/2.095, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001144/0.001143, allocations: 97.53 kB / 270.9 MB, free: 8.387 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.5096/0.5096, allocations: 43.55 MB / 362.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004761/0.0004761, allocations: 12 kB / 431.5 MB, free: 6.094 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1323, allocations: 58.86 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5058/0.6381, allocations: 111.5 MB / 0.5878 GB, free: 6.973 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.6385, allocations: 83.95 kB / 0.5878 GB, free: 6.891 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.32/1.958, allocations: 241.1 MB / 0.8233 GB, free: 24.94 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.277e-06/1.958, allocations: 0 / 0.8233 GB, free: 24.94 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0008902/1.959, allocations: 260 kB / 0.8236 GB, free: 24.69 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: 4457 * Number of variables: 4457 Notification: Performance of Generate backend data structure: time 0.05694/2.016, allocations: 13.36 MB / 0.8366 GB, free: 11.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.268e-05/2.016, allocations: 19.94 kB / 0.8366 GB, free: 11.19 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01071/2.027, allocations: 2.2 MB / 0.8388 GB, free: 8.973 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09547/2.122, allocations: 12.82 MB / 0.8513 GB, free: 12.12 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.8631/2.985, allocations: 13.36 MB / 0.8643 GB, free: 47.47 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001658/2.987, allocations: 0.9569 MB / 0.8653 GB, free: 47.45 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007931/2.995, allocations: 1.274 MB / 0.8665 GB, free: 47.45 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1035/3.099, allocations: 30.19 MB / 0.896 GB, free: 41.28 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001171/3.1, allocations: 150.2 kB / 0.8961 GB, free: 41.28 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007097/3.107, allocations: 0.5936 MB / 0.8967 GB, free: 41.28 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007541/3.115, allocations: 2.862 MB / 0.8995 GB, free: 41.25 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08267/3.197, allocations: 24.68 MB / 0.9236 GB, free: 41.12 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2275/3.425, allocations: 127.9 MB / 1.048 GB, free: 1.465 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07713/3.502, allocations: 14.47 MB / 1.063 GB, free: 7.223 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4766/3.979, allocations: 19.91 MB / 1.082 GB, free: 107.5 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001084/3.979, allocations: 95.88 kB / 1.082 GB, free: 107.5 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=562): time 9.989e-06/3.979, allocations: 0 / 1.082 GB, free: 107.5 MB / 0.5574 GB Notification: Performance of matching and sorting (n=646): time 0.2898/4.269, allocations: 67.88 MB / 1.148 GB, free: 94.21 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001618/4.269, allocations: 378.5 kB / 1.149 GB, free: 93.83 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0291/4.298, allocations: 10.75 MB / 1.159 GB, free: 93.06 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.002007/4.3, allocations: 127.3 kB / 1.159 GB, free: 93.03 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.007588/4.308, allocations: 8.022 MB / 1.167 GB, free: 88.16 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.004209/4.312, allocations: 2.38 MB / 1.17 GB, free: 86.4 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003331/4.315, allocations: 315.4 kB / 1.17 GB, free: 86.15 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.001596/4.317, allocations: 0.9648 MB / 1.171 GB, free: 85.56 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01862/4.336, allocations: 6.772 MB / 1.177 GB, free: 83.25 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02458/4.36, allocations: 15.21 MB / 1.192 GB, free: 69.74 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02415/4.385, allocations: 9.942 MB / 1.202 GB, free: 66.22 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003416/4.385, allocations: 87.03 kB / 1.202 GB, free: 66.22 MB / 0.5574 GB Notification: Performance of matching and sorting (n=2020) (initialization): time 0.07133/4.456, allocations: 24.37 MB / 1.226 GB, free: 46.76 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002499/4.457, allocations: 132 kB / 1.226 GB, free: 46.63 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005475/4.457, allocations: 296 kB / 1.226 GB, free: 46.34 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01465/4.472, allocations: 3.308 MB / 1.23 GB, free: 43.92 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02704/4.499, allocations: 3.766 MB / 1.233 GB, free: 40.75 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0454/4.544, allocations: 23.25 MB / 1.256 GB, free: 19.96 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0208/4.565, allocations: 0.9376 MB / 1.257 GB, free: 19.19 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004447/4.57, allocations: 0.8868 MB / 1.258 GB, free: 18.34 MB / 0.5574 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 () * Number of clocked 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.01901/4.589, allocations: 5.75 MB / 1.263 GB, free: 13.29 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004534/4.593, allocations: 1.076 MB / 1.264 GB, free: 12.2 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4936/5.087, allocations: 14.91 MB / 1.279 GB, free: 89.65 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000216/5.087, allocations: 65.41 kB / 1.279 GB, free: 89.65 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002171/5.088, allocations: 17.38 kB / 1.279 GB, free: 89.65 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002916/5.088, allocations: 32.7 kB / 1.279 GB, free: 89.65 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1274/5.215, allocations: 32.55 MB / 1.311 GB, free: 88.21 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001442/5.215, allocations: 13.34 kB / 1.311 GB, free: 88.21 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01511/5.231, allocations: 1.279 MB / 1.312 GB, free: 88.21 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01416/5.245, allocations: 2.842 MB / 1.315 GB, free: 88.17 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002325/5.247, allocations: 125.8 kB / 1.315 GB, free: 88.17 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04671/5.294, allocations: 21.73 MB / 1.336 GB, free: 82.81 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.455e-05/5.294, allocations: 15.88 kB / 1.336 GB, free: 82.81 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06471/5.359, allocations: 26.33 MB / 1.362 GB, free: 72.25 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00978/5.369, allocations: 2.188 MB / 1.364 GB, free: 71.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00491/5.374, allocations: 120.2 kB / 1.364 GB, free: 71.62 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01206/5.386, allocations: 443.7 kB / 1.365 GB, free: 71.55 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002828/5.389, allocations: 415.1 kB / 1.365 GB, free: 71.48 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001282/5.39, allocations: 168.9 kB / 1.365 GB, free: 71.44 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.02324/5.413, allocations: 7.783 MB / 1.373 GB, free: 68.91 MB / 0.5574 GB Notification: Performance of sort global known variables: time 8.82e-07/5.413, allocations: 3.562 kB / 1.373 GB, free: 68.91 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.02171/5.435, allocations: 3.103 MB / 1.376 GB, free: 68.57 MB / 0.5574 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 () * Number of clocked 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.06503/5.5, allocations: 27.45 MB / 1.403 GB, free: 54.95 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.03963/5.54, allocations: 16.83 MB / 1.419 GB, free: 45.5 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.787e-05/5.54, allocations: 4 kB / 1.419 GB, free: 45.49 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.01891/5.559, allocations: 7.13 MB / 1.426 GB, free: 39.39 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01203/5.571, allocations: 1.343 MB / 1.427 GB, free: 38.28 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.359/6.93, allocations: 351.1 MB / 1.77 GB, free: 234.8 MB / 0.7137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02748/6.958, allocations: 8.891 MB / 1.779 GB, free: 233.8 MB / 0.7137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02155/6.979, allocations: 6.539 MB / 1.785 GB, free: 233.8 MB / 0.7137 GB Notification: Performance of SimCode: time 1.744e-06/6.979, allocations: 0 / 1.785 GB, free: 233.8 MB / 0.7137 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.776/15.76, allocations: 452.2 MB / 2.227 GB, free: 242.3 MB / 0.7137 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