Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.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.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",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.002276/0.002276, allocations: 186.5 kB / 16.41 MB, free: 5.727 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.077/2.077, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001221/0.001221, allocations: 88.42 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.5361/0.5361, allocations: 43.56 MB / 362.7 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005005/0.0005007, allocations: 12 kB / 431.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1308, allocations: 58.85 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5087/0.6395, allocations: 107.1 MB / 0.5834 GB, free: 11.6 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.6399, allocations: 83.89 kB / 0.5835 GB, free: 11.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9441/1.584, allocations: 131.5 MB / 0.7119 GB, free: 85.02 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.584, allocations: 0 / 0.7119 GB, free: 85.02 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004482/1.585, allocations: 129.4 kB / 0.712 GB, free: 85.02 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: 2377 * Number of variables: 2377 Notification: Performance of Generate backend data structure: time 0.03129/1.616, allocations: 6.827 MB / 0.7187 GB, free: 82.28 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/1.616, allocations: 9.531 kB / 0.7187 GB, free: 82.28 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006496/1.622, allocations: 1.179 MB / 0.7198 GB, free: 82.18 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05382/1.676, allocations: 7.094 MB / 0.7268 GB, free: 81.72 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02823/1.705, allocations: 7.298 MB / 0.7339 GB, free: 80.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007296/1.705, allocations: 0.4961 MB / 0.7344 GB, free: 80.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004287/1.71, allocations: 0.6548 MB / 0.735 GB, free: 80.8 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05573/1.766, allocations: 16.58 MB / 0.7512 GB, free: 73.57 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005716/1.766, allocations: 84.77 kB / 0.7513 GB, free: 73.52 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003794/1.77, allocations: 313 kB / 0.7516 GB, free: 73.34 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003625/1.774, allocations: 1.578 MB / 0.7531 GB, free: 73.05 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04613/1.82, allocations: 14.12 MB / 0.7669 GB, free: 68.73 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1127/1.933, allocations: 66.31 MB / 0.8317 GB, free: 11.44 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02929/1.962, allocations: 7.056 MB / 0.8386 GB, free: 4.242 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0443/2.006, allocations: 15.06 MB / 0.8533 GB, free: 5.125 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.258e-05/2.006, allocations: 68.52 kB / 0.8533 GB, free: 5.051 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=306): time 7.505e-06/2.006, allocations: 0 / 0.8533 GB, free: 5.051 MB / 0.4949 GB Notification: Performance of matching and sorting (n=348): time 0.5247/2.531, allocations: 30.75 MB / 0.8834 GB, free: 91.68 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/2.531, allocations: 222.9 kB / 0.8836 GB, free: 91.46 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01422/2.546, allocations: 4.728 MB / 0.8882 GB, free: 91.06 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001217/2.547, allocations: 76.3 kB / 0.8883 GB, free: 91.03 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004256/2.551, allocations: 4.251 MB / 0.8924 GB, free: 88.73 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002659/2.554, allocations: 1.277 MB / 0.8937 GB, free: 87.97 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002042/2.556, allocations: 164.2 kB / 0.8938 GB, free: 87.97 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001081/2.557, allocations: 0.6591 MB / 0.8945 GB, free: 87.64 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01165/2.569, allocations: 3.619 MB / 0.898 GB, free: 87.62 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01609/2.585, allocations: 8.095 MB / 0.9059 GB, free: 80.62 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01531/2.6, allocations: 5.307 MB / 0.9111 GB, free: 78.75 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002552/2.601, allocations: 46.41 kB / 0.9111 GB, free: 78.75 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1071) (initialization): time 0.04147/2.642, allocations: 12.88 MB / 0.9237 GB, free: 74.38 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.000151/2.642, allocations: 72.09 kB / 0.9238 GB, free: 74.38 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002751/2.643, allocations: 156.3 kB / 0.9239 GB, free: 74.38 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007316/2.65, allocations: 1.673 MB / 0.9256 GB, free: 74.09 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01336/2.663, allocations: 1.927 MB / 0.9274 GB, free: 73.87 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02302/2.686, allocations: 11.68 MB / 0.9389 GB, free: 67.66 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01085/2.697, allocations: 0.4964 MB / 0.9393 GB, free: 67.51 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002402/2.7, allocations: 482.3 kB / 0.9398 GB, free: 67.45 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 713 * Number of states: 0 () * Number of discrete variables: 51 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (999): * Single equations (assignments): 994 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01035/2.71, allocations: 3.085 MB / 0.9428 GB, free: 66.02 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001721/2.712, allocations: 0.5034 MB / 0.9433 GB, free: 65.74 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02533/2.737, allocations: 7.461 MB / 0.9506 GB, free: 62.95 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.79e-05/2.737, allocations: 35.44 kB / 0.9506 GB, free: 62.95 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.187e-05/2.737, allocations: 9.844 kB / 0.9506 GB, free: 62.95 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.196e-05/2.738, allocations: 18.33 kB / 0.9507 GB, free: 62.95 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05113/2.789, allocations: 16.1 MB / 0.9664 GB, free: 57.19 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-05/2.789, allocations: 3.656 kB / 0.9664 GB, free: 57.19 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006425/2.795, allocations: 0.6056 MB / 0.967 GB, free: 57.14 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006654/2.802, allocations: 1.412 MB / 0.9684 GB, free: 56.87 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001058/2.803, allocations: 65.44 kB / 0.9684 GB, free: 56.82 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02118/2.824, allocations: 10.85 MB / 0.979 GB, free: 47.5 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/2.824, allocations: 4 kB / 0.979 GB, free: 47.5 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03161/2.856, allocations: 12.03 MB / 0.9908 GB, free: 37.08 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00498/2.861, allocations: 1.099 MB / 0.9918 GB, free: 36.06 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002104/2.863, allocations: 58.75 kB / 0.9919 GB, free: 36 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006263/2.869, allocations: 257.7 kB / 0.9921 GB, free: 35.84 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001497/2.871, allocations: 203.1 kB / 0.9923 GB, free: 35.71 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005632/2.872, allocations: 91.38 kB / 0.9924 GB, free: 35.63 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.00881/2.88, allocations: 3.328 MB / 0.9957 GB, free: 32.91 MB / 0.4949 GB Notification: Performance of sort global known variables: time 6.81e-07/2.88, allocations: 0 / 0.9957 GB, free: 32.91 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01253/2.893, allocations: 1.619 MB / 0.9973 GB, free: 31.3 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (294): * Single equations (assignments): 289 * 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.03365/2.927, allocations: 12.89 MB / 1.01 GB, free: 20.02 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02232/2.949, allocations: 8.978 MB / 1.019 GB, free: 12.11 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/2.949, allocations: 0 / 1.019 GB, free: 12.11 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01069/2.96, allocations: 3.78 MB / 1.022 GB, free: 8.785 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006044/2.966, allocations: 0.6257 MB / 1.023 GB, free: 8.258 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5809/3.547, allocations: 166 MB / 1.185 GB, free: 28.64 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01346/3.56, allocations: 4.94 MB / 1.19 GB, free: 27.77 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00951/3.57, allocations: 3.116 MB / 1.193 GB, free: 27.77 MB / 0.5574 GB Notification: Performance of SimCode: time 1.252e-06/3.57, allocations: 0.5938 kB / 1.193 GB, free: 27.77 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.686/9.256, allocations: 182.1 MB / 1.371 GB, free: 107.9 MB / 0.5574 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat does not exist to compare? outputFormat=mat