Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.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.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",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.002331/0.002331, allocations: 181.2 kB / 8.366 MB, free: 0.7109 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.363/2.363, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001141/0.001141, allocations: 96.06 kB / 262.1 MB, free: 13.88 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.2988/0.2988, allocations: 43.49 MB / 353.6 MB, free: 2.289 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.106e-05/2.114e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4137/0.4137, allocations: 58.85 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.199/0.6127, allocations: 106.8 MB / 0.5703 GB, free: 8.402 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.613, allocations: 83.44 kB / 0.5704 GB, free: 8.324 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8783/1.491, allocations: 130.6 MB / 0.6978 GB, free: 101.5 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.444e-06/1.491, allocations: 0 / 0.6978 GB, free: 101.5 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.000419/1.492, allocations: 135.2 kB / 0.698 GB, free: 101.5 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: 2413 * Number of variables: 2413 Notification: Performance of Generate backend data structure: time 0.02807/1.52, allocations: 6.441 MB / 0.7043 GB, free: 97.54 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/1.52, allocations: 7.5 kB / 0.7043 GB, free: 97.54 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05265/1.573, allocations: 7.135 MB / 0.7112 GB, free: 93.91 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02684/1.6, allocations: 7.251 MB / 0.7183 GB, free: 89.12 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004676/1.6, allocations: 224 kB / 0.7185 GB, free: 88.9 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00397/1.604, allocations: 395.9 kB / 0.7189 GB, free: 88.52 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02992/1.634, allocations: 9.524 MB / 0.7282 GB, free: 78.99 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04732/1.681, allocations: 14.41 MB / 0.7423 GB, free: 63.24 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000391/1.682, allocations: 87.19 kB / 0.7424 GB, free: 63.15 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003343/1.685, allocations: 43.98 kB / 0.7424 GB, free: 63.11 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005/1.69, allocations: 1.561 MB / 0.7439 GB, free: 61.55 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1184/1.809, allocations: 67.27 MB / 0.8096 GB, free: 8.875 MB / 491.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01271/1.822, allocations: 5.597 MB / 0.8151 GB, free: 3.133 MB / 491.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008635/1.83, allocations: 3.792 MB / 0.8188 GB, free: 15.34 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00033/1.831, allocations: 62.23 kB / 0.8189 GB, free: 15.29 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.714e-05/1.831, allocations: 68.5 kB / 0.8189 GB, free: 15.21 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=290): time 6.853e-06/1.831, allocations: 0 / 0.8189 GB, free: 15.21 MB / 0.4952 GB Notification: Performance of matching and sorting (n=334): time 0.4789/2.31, allocations: 29.32 MB / 0.8476 GB, free: 119.3 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/2.31, allocations: 213.9 kB / 0.8478 GB, free: 119 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01702/2.327, allocations: 4.274 MB / 0.8519 GB, free: 118.6 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001282/2.328, allocations: 25.7 kB / 0.852 GB, free: 118.6 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.006208/2.335, allocations: 4.612 MB / 0.8565 GB, free: 115.8 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.003268/2.338, allocations: 1.211 MB / 0.8576 GB, free: 115.1 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002298/2.34, allocations: 0 / 0.8576 GB, free: 115.1 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.001641/2.342, allocations: 0.6934 MB / 0.8583 GB, free: 114.8 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01181/2.354, allocations: 3.624 MB / 0.8619 GB, free: 114.7 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01344/2.367, allocations: 8.659 MB / 0.8703 GB, free: 108.2 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0125/2.38, allocations: 5.507 MB / 0.8757 GB, free: 106.5 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002545/2.38, allocations: 49.06 kB / 0.8757 GB, free: 106.5 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.03609/2.416, allocations: 12.54 MB / 0.888 GB, free: 102.7 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001399/2.417, allocations: 82.09 kB / 0.8881 GB, free: 102.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002752/2.417, allocations: 177.7 kB / 0.8882 GB, free: 102.7 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00735/2.424, allocations: 1.696 MB / 0.8899 GB, free: 102.4 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01494/2.439, allocations: 2.185 MB / 0.892 GB, free: 102.2 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02231/2.462, allocations: 10.77 MB / 0.9025 GB, free: 96.43 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01167/2.473, allocations: 377.7 kB / 0.9029 GB, free: 96.41 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002653/2.476, allocations: 0.5245 MB / 0.9034 GB, free: 96.34 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 815 * Number of states: 0 () * Number of discrete variables: 54 (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],fixed2.color[3],fixed2.color[2],fixed2.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 (1094): * Single equations (assignments): 1089 * 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.004302/2.48, allocations: 0.549 MB / 0.904 GB, free: 95.89 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02195/2.502, allocations: 7.108 MB / 0.9109 GB, free: 93.44 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002481/2.505, allocations: 486.9 kB / 0.9114 GB, free: 93.18 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02278/2.528, allocations: 7.134 MB / 0.9183 GB, free: 89.18 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-05/2.528, allocations: 32.7 kB / 0.9184 GB, free: 89.14 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-05/2.528, allocations: 15.66 kB / 0.9184 GB, free: 89.13 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.98e-05/2.528, allocations: 15.95 kB / 0.9184 GB, free: 89.13 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04889/2.577, allocations: 15.01 MB / 0.933 GB, free: 76.94 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.592e-05/2.577, allocations: 4 kB / 0.933 GB, free: 76.94 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007017/2.584, allocations: 0.6552 MB / 0.9337 GB, free: 76.44 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006642/2.591, allocations: 1.406 MB / 0.9351 GB, free: 75.45 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001068/2.592, allocations: 19.23 kB / 0.9351 GB, free: 75.44 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01924/2.611, allocations: 9.843 MB / 0.9447 GB, free: 66.6 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.096e-05/2.611, allocations: 11.8 kB / 0.9447 GB, free: 66.59 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02926/2.64, allocations: 12.35 MB / 0.9568 GB, free: 55.64 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004727/2.645, allocations: 1.082 MB / 0.9578 GB, free: 54.63 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002361/2.648, allocations: 7.422 kB / 0.9578 GB, free: 54.63 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006466/2.654, allocations: 228 kB / 0.958 GB, free: 54.51 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001401/2.656, allocations: 200.8 kB / 0.9582 GB, free: 54.38 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006044/2.656, allocations: 88.17 kB / 0.9583 GB, free: 54.3 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.007451/2.664, allocations: 2.86 MB / 0.9611 GB, free: 51.82 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.022e-06/2.664, allocations: 0 / 0.9611 GB, free: 51.82 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.0126/2.676, allocations: 1.446 MB / 0.9625 GB, free: 50.38 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (280): * Single equations (assignments): 275 * 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.03067/2.707, allocations: 13.74 MB / 0.9759 GB, free: 37.59 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02176/2.729, allocations: 9.094 MB / 0.9848 GB, free: 28.5 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/2.729, allocations: 0 / 0.9848 GB, free: 28.5 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.009652/2.739, allocations: 3.637 MB / 0.9884 GB, free: 24.84 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0055/2.744, allocations: 0.4909 MB / 0.9889 GB, free: 24.37 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05312/2.797, allocations: 15.92 MB / 1.004 GB, free: 8.375 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01193/2.809, allocations: 5.005 MB / 1.009 GB, free: 3.371 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00945/2.819, allocations: 3.194 MB / 1.012 GB, free: 180 kB / 0.4952 GB Notification: Performance of SimCode: time 1.493e-06/2.819, allocations: 4 kB / 1.012 GB, free: 176 kB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.629/8.448, allocations: 183 MB / 1.191 GB, free: 5.066 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat does not exist to compare? outputFormat=mat