Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.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.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques",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.001448/0.001454, allocations: 179.4 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.082/2.082, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001094, allocations: 81.61 kB / 262.1 MB, free: 13.86 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.2833/0.2833, allocations: 43.49 MB / 353.6 MB, free: 2.258 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.45e-05/2.461e-05, allocations: 8.203 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4008/0.4008, allocations: 58.85 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2037/0.6046, allocations: 109.5 MB / 0.5729 GB, free: 5.711 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/0.6049, allocations: 79.94 kB / 0.573 GB, free: 5.633 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9265/1.531, allocations: 145.8 MB / 0.7153 GB, free: 92.12 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.084e-06/1.532, allocations: 0 / 0.7153 GB, free: 92.12 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004614/1.532, allocations: 150.5 kB / 0.7155 GB, free: 92.12 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: 2763 * Number of variables: 2763 Notification: Performance of Generate backend data structure: time 0.02956/1.562, allocations: 7.385 MB / 0.7227 GB, free: 85.22 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.277e-05/1.562, allocations: 12.03 kB / 0.7227 GB, free: 85.21 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05263/1.614, allocations: 7.322 MB / 0.7298 GB, free: 77.86 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02857/1.643, allocations: 7.894 MB / 0.7375 GB, free: 69.96 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005252/1.643, allocations: 252 kB / 0.7378 GB, free: 69.71 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004282/1.648, allocations: 463.9 kB / 0.7382 GB, free: 69.26 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02748/1.675, allocations: 10.99 MB / 0.749 GB, free: 58.27 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04302/1.718, allocations: 16.45 MB / 0.765 GB, free: 40.33 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004648/1.719, allocations: 95.11 kB / 0.7651 GB, free: 40.24 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003566/1.722, allocations: 44 kB / 0.7652 GB, free: 40.2 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004105/1.727, allocations: 1.831 MB / 0.7669 GB, free: 38.36 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5533/2.28, allocations: 77.77 MB / 0.8429 GB, free: 71.2 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01445/2.295, allocations: 6.736 MB / 0.8495 GB, free: 69.95 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009745/2.304, allocations: 4.356 MB / 0.8537 GB, free: 69.9 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002591/2.307, allocations: 0.7235 MB / 0.8544 GB, free: 69.33 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001414/2.307, allocations: 70.11 kB / 0.8545 GB, free: 69.29 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=340): time 1.766e-05/2.307, allocations: 3.281 kB / 0.8545 GB, free: 69.29 MB / 0.4952 GB Notification: Performance of matching and sorting (n=384): time 0.1224/2.43, allocations: 32.2 MB / 0.8859 GB, free: 63.84 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/2.43, allocations: 246.6 kB / 0.8862 GB, free: 63.59 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01361/2.443, allocations: 5.027 MB / 0.8911 GB, free: 61.97 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001173/2.445, allocations: 32.45 kB / 0.8911 GB, free: 61.94 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004998/2.45, allocations: 5.284 MB / 0.8963 GB, free: 57.86 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.00262/2.452, allocations: 1.387 MB / 0.8976 GB, free: 56.82 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001858/2.454, allocations: 0 / 0.8976 GB, free: 56.82 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.001092/2.455, allocations: 0.7459 MB / 0.8984 GB, free: 56.32 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01014/2.466, allocations: 3.923 MB / 0.9022 GB, free: 54.9 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01454/2.48, allocations: 9.703 MB / 0.9117 GB, free: 45.71 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01428/2.494, allocations: 6.101 MB / 0.9176 GB, free: 43.8 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003013/2.495, allocations: 57.59 kB / 0.9177 GB, free: 43.8 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1350) (initialization): time 0.04116/2.536, allocations: 13.75 MB / 0.9311 GB, free: 34.97 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001788/2.536, allocations: 95.16 kB / 0.9312 GB, free: 34.88 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003435/2.537, allocations: 208 kB / 0.9314 GB, free: 34.68 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007533/2.544, allocations: 1.747 MB / 0.9331 GB, free: 33.36 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01708/2.561, allocations: 2.522 MB / 0.9356 GB, free: 31.23 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02245/2.584, allocations: 10.82 MB / 0.9461 GB, free: 21.61 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01226/2.596, allocations: 397.1 kB / 0.9465 GB, free: 21.31 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003128/2.599, allocations: 0.6003 MB / 0.9471 GB, free: 20.73 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 937 * Number of states: 0 () * Number of discrete variables: 69 (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],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[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 (1278): * Single equations (assignments): 1273 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004449/2.604, allocations: 0.6316 MB / 0.9477 GB, free: 20.11 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02241/2.626, allocations: 7.433 MB / 0.955 GB, free: 13.86 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002572/2.629, allocations: 0.5565 MB / 0.9555 GB, free: 13.3 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02361/2.653, allocations: 7.498 MB / 0.9628 GB, free: 7.246 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000101/2.653, allocations: 40 kB / 0.9629 GB, free: 7.207 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.354e-05/2.653, allocations: 16 kB / 0.9629 GB, free: 7.191 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001103/2.653, allocations: 17.95 kB / 0.9629 GB, free: 7.191 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05478/2.708, allocations: 16.4 MB / 0.9789 GB, free: 9.91 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.383e-05/2.708, allocations: 8.562 kB / 0.9789 GB, free: 9.902 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008036/2.716, allocations: 0.7533 MB / 0.9797 GB, free: 9.32 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007057/2.723, allocations: 1.405 MB / 0.981 GB, free: 8.332 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001197/2.724, allocations: 26.05 kB / 0.9811 GB, free: 8.312 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02411/2.748, allocations: 9.906 MB / 0.9907 GB, free: 15.47 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.529e-05/2.748, allocations: 10.62 kB / 0.9908 GB, free: 15.46 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03829/2.787, allocations: 13.29 MB / 1.004 GB, free: 2.488 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005731/2.792, allocations: 1.185 MB / 1.005 GB, free: 1.277 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002613/2.795, allocations: 12 kB / 1.005 GB, free: 1.266 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006751/2.802, allocations: 203.6 kB / 1.005 GB, free: 1.066 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001675/2.804, allocations: 230.8 kB / 1.005 GB, free: 0.8438 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001291/2.805, allocations: 108 kB / 1.005 GB, free: 0.7383 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.01154/2.817, allocations: 3.363 MB / 1.009 GB, free: 13.38 MB / 0.5421 GB Notification: Performance of sort global known variables: time 1.553e-06/2.817, allocations: 0 / 1.009 GB, free: 13.38 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.01519/2.832, allocations: 1.607 MB / 1.01 GB, free: 11.77 MB / 0.5421 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (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 (330): * Single equations (assignments): 325 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.03939/2.871, allocations: 14.95 MB / 1.025 GB, free: 12.59 MB / 0.5577 GB Notification: Performance of simCode: created initialization part: time 0.02816/2.9, allocations: 9.805 MB / 1.034 GB, free: 2.812 MB / 0.5577 GB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/2.9, allocations: 0 / 1.034 GB, free: 2.812 MB / 0.5577 GB Notification: Performance of simCode: created simulation system equations: time 0.01209/2.912, allocations: 3.827 MB / 1.038 GB, free: 14.97 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006106/2.918, allocations: 0.5596 MB / 1.039 GB, free: 14.43 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4465/3.364, allocations: 17.99 MB / 1.056 GB, free: 181.8 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01774/3.382, allocations: 5.656 MB / 1.062 GB, free: 180.9 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01107/3.393, allocations: 3.722 MB / 1.065 GB, free: 180.9 MB / 0.5733 GB Notification: Performance of SimCode: time 1.974e-06/3.393, allocations: 0 / 1.065 GB, free: 180.9 MB / 0.5733 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.321/9.715, allocations: 207.7 MB / 1.268 GB, free: 161.6 MB / 0.5733 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat does not exist to compare? outputFormat=mat