Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Force.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.Force,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Force,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Force",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.002232/0.002232, allocations: 181 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.074/2.074, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001124/0.001123, allocations: 86.66 kB / 267.5 MB, free: 14.05 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.3124/0.3124, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.146e-05/4.155e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1225, allocations: 58.85 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6492/0.7718, allocations: 107.6 MB / 0.5779 GB, free: 11.87 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.7722, allocations: 78.58 kB / 0.578 GB, free: 11.83 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5589/1.331, allocations: 129.5 MB / 0.7045 GB, free: 2.18 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.835e-06/1.331, allocations: 0 / 0.7045 GB, free: 2.18 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005336/1.332, allocations: 132 kB / 0.7046 GB, free: 2.051 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: 2323 * Number of variables: 2323 Notification: Performance of Generate backend data structure: time 0.7018/2.034, allocations: 6.558 MB / 0.711 GB, free: 95.41 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/2.034, allocations: 9.906 kB / 0.711 GB, free: 95.41 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005886/2.04, allocations: 1.158 MB / 0.7121 GB, free: 95.32 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05442/2.094, allocations: 7.124 MB / 0.7191 GB, free: 94.86 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02868/2.123, allocations: 7.384 MB / 0.7263 GB, free: 94.45 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007427/2.124, allocations: 499.9 kB / 0.7268 GB, free: 94.43 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00375/2.127, allocations: 0.6496 MB / 0.7274 GB, free: 94.42 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05062/2.178, allocations: 16.18 MB / 0.7432 GB, free: 90.51 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004897/2.179, allocations: 92.12 kB / 0.7433 GB, free: 90.5 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003069/2.182, allocations: 326 kB / 0.7436 GB, free: 90.5 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003466/2.185, allocations: 1.546 MB / 0.7451 GB, free: 90.49 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0406/2.226, allocations: 13.15 MB / 0.758 GB, free: 90.41 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.112/2.338, allocations: 72.61 MB / 0.8289 GB, free: 39.18 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03405/2.372, allocations: 7.43 MB / 0.8361 GB, free: 36.68 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007261/2.379, allocations: 3.815 MB / 0.8399 GB, free: 33.19 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02428/2.404, allocations: 9.663 MB / 0.8493 GB, free: 25.1 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.384e-05/2.404, allocations: 64.28 kB / 0.8494 GB, free: 25.03 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=273): time 6.993e-06/2.404, allocations: 0 / 0.8494 GB, free: 25.03 MB / 0.4949 GB Notification: Performance of matching and sorting (n=315): time 0.1248/2.529, allocations: 27.64 MB / 0.8763 GB, free: 2.277 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/2.529, allocations: 251.7 kB / 0.8766 GB, free: 1.984 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02415/2.553, allocations: 6.395 MB / 0.8828 GB, free: 13.26 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001017/2.554, allocations: 73.61 kB / 0.8829 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005799/2.56, allocations: 4.463 MB / 0.8873 GB, free: 8.73 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002501/2.562, allocations: 1.19 MB / 0.8884 GB, free: 7.551 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001644/2.564, allocations: 176 kB / 0.8886 GB, free: 7.379 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0009627/2.565, allocations: 0.6829 MB / 0.8893 GB, free: 6.684 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01081/2.576, allocations: 3.485 MB / 0.8927 GB, free: 3.191 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01641/2.592, allocations: 8.63 MB / 0.9011 GB, free: 8.082 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01481/2.607, allocations: 5.431 MB / 0.9064 GB, free: 2.648 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001985/2.607, allocations: 52 kB / 0.9064 GB, free: 2.598 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.4121/3.02, allocations: 13.12 MB / 0.9193 GB, free: 114.9 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001737/3.02, allocations: 82.03 kB / 0.9193 GB, free: 114.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004294/3.02, allocations: 185.1 kB / 0.9195 GB, free: 114.9 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008221/3.028, allocations: 1.683 MB / 0.9212 GB, free: 114.8 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01447/3.043, allocations: 2.121 MB / 0.9232 GB, free: 114.7 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02115/3.064, allocations: 11.21 MB / 0.9342 GB, free: 111.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01084/3.075, allocations: 0.5268 MB / 0.9347 GB, free: 111.9 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002238/3.077, allocations: 0.5283 MB / 0.9352 GB, free: 111.9 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 827 * Number of states: 0 () * Number of discrete variables: 63 (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],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.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 (1087): * Single equations (assignments): 1082 * 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%) 22,(2,100.0%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003673/3.081, allocations: 0.7867 MB / 0.936 GB, free: 111.6 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001743/3.083, allocations: 0.5892 MB / 0.9366 GB, free: 111.6 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02113/3.104, allocations: 6.74 MB / 0.9431 GB, free: 111.4 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.318e-05/3.104, allocations: 32.22 kB / 0.9432 GB, free: 111.4 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.534e-05/3.104, allocations: 10.81 kB / 0.9432 GB, free: 111.4 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.297e-05/3.104, allocations: 15.08 kB / 0.9432 GB, free: 111.4 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0466/3.151, allocations: 15.14 MB / 0.958 GB, free: 110.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.539e-05/3.151, allocations: 3.031 kB / 0.958 GB, free: 110.5 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006049/3.157, allocations: 0.5874 MB / 0.9585 GB, free: 110.5 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00656/3.164, allocations: 1.403 MB / 0.9599 GB, free: 110.5 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009232/3.165, allocations: 55.34 kB / 0.96 GB, free: 110.5 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02119/3.186, allocations: 10.42 MB / 0.9701 GB, free: 105.5 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/3.186, allocations: 6.75 kB / 0.9702 GB, free: 105.5 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02853/3.214, allocations: 11.81 MB / 0.9817 GB, free: 100.3 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004766/3.219, allocations: 1.154 MB / 0.9828 GB, free: 99.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002955/3.222, allocations: 59.84 kB / 0.9829 GB, free: 99.66 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006291/3.229, allocations: 216.4 kB / 0.9831 GB, free: 99.62 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001314/3.23, allocations: 194.7 kB / 0.9833 GB, free: 99.59 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004137/3.23, allocations: 88.08 kB / 0.9833 GB, free: 99.57 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01164/3.242, allocations: 4.307 MB / 0.9876 GB, free: 98.1 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.093e-06/3.242, allocations: 0 / 0.9876 GB, free: 98.1 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01147/3.254, allocations: 1.634 MB / 0.9891 GB, free: 97.91 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (260): * Single equations (assignments): 255 * 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%) 17,(4,75.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02931/3.283, allocations: 13.2 MB / 1.002 GB, free: 91.29 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01986/3.303, allocations: 8.635 MB / 1.01 GB, free: 85.15 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/3.303, allocations: 3.219 kB / 1.01 GB, free: 85.15 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.00934/3.312, allocations: 3.41 MB / 1.014 GB, free: 82.11 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006188/3.318, allocations: 0.7033 MB / 1.014 GB, free: 81.52 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0492/3.368, allocations: 15.98 MB / 1.03 GB, free: 67.91 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01105/3.379, allocations: 4.939 MB / 1.035 GB, free: 64.29 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008201/3.387, allocations: 3.231 MB / 1.038 GB, free: 61.29 MB / 0.5262 GB Notification: Performance of SimCode: time 1.403e-06/3.387, allocations: 0 / 1.038 GB, free: 61.29 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.03/9.418, allocations: 186 MB / 1.22 GB, free: 54.54 MB / 0.5262 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Force.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Force.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Force.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Force.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Force_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Force_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Force.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Force.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Force_res.mat does not exist to compare? outputFormat=mat