Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.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.WorldForces,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces",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.001489/0.001489, allocations: 181.4 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.096/2.096, 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.00163/0.00163, allocations: 82.7 kB / 267.5 MB, free: 14.04 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.4079/0.4079, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.113e-05/4.128e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1201, allocations: 58.87 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5477/0.6678, allocations: 108.7 MB / 0.579 GB, free: 10.75 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.6682, allocations: 82.23 kB / 0.5791 GB, free: 10.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.076/1.744, allocations: 152.8 MB / 0.7283 GB, free: 92.29 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.495e-06/1.744, allocations: 1.25 kB / 0.7283 GB, free: 92.29 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005934/1.745, allocations: 146.2 kB / 0.7284 GB, free: 92.29 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: 2705 * Number of variables: 2705 Notification: Performance of Generate backend data structure: time 0.03269/1.778, allocations: 7.394 MB / 0.7356 GB, free: 89.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/1.778, allocations: 8.562 kB / 0.7356 GB, free: 89.4 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006514/1.784, allocations: 1.348 MB / 0.737 GB, free: 89.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07042/1.855, allocations: 9.634 MB / 0.7464 GB, free: 88.77 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03245/1.887, allocations: 9.135 MB / 0.7553 GB, free: 87.81 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008336/1.888, allocations: 0.5789 MB / 0.7559 GB, free: 87.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004533/1.893, allocations: 0.7668 MB / 0.7566 GB, free: 87.79 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06935/1.962, allocations: 18.04 MB / 0.7742 GB, free: 83.35 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007476/1.963, allocations: 107.7 kB / 0.7743 GB, free: 83.34 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004752/1.968, allocations: 376.2 kB / 0.7747 GB, free: 83.34 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005157/1.973, allocations: 1.691 MB / 0.7763 GB, free: 83.31 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04586/2.019, allocations: 14.4 MB / 0.7904 GB, free: 80.28 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.124/2.143, allocations: 80.92 MB / 0.8694 GB, free: 10.76 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02781/2.171, allocations: 7.15 MB / 0.8764 GB, free: 4.691 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007898/2.179, allocations: 4.062 MB / 0.8804 GB, free: 0.957 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004138/2.179, allocations: 61.67 kB / 0.8804 GB, free: 0.918 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.206e-05/2.179, allocations: 72.62 kB / 0.8805 GB, free: 0.8398 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=307): time 8.426e-06/2.179, allocations: 0 / 0.8805 GB, free: 0.8398 MB / 0.4948 GB Notification: Performance of matching and sorting (n=340): time 0.4974/2.677, allocations: 27.4 MB / 0.9073 GB, free: 95.79 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/2.677, allocations: 296.3 kB / 0.9075 GB, free: 95.48 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02266/2.699, allocations: 6.54 MB / 0.9139 GB, free: 94.95 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001173/2.701, allocations: 77.62 kB / 0.914 GB, free: 94.91 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00654/2.707, allocations: 5.094 MB / 0.919 GB, free: 92.71 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002699/2.71, allocations: 1.287 MB / 0.9202 GB, free: 92.12 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001612/2.712, allocations: 189.9 kB / 0.9204 GB, free: 92.12 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001075/2.713, allocations: 0.7172 MB / 0.9211 GB, free: 91.79 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0102/2.723, allocations: 3.605 MB / 0.9246 GB, free: 91.77 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01413/2.737, allocations: 9.209 MB / 0.9336 GB, free: 84.57 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0133/2.75, allocations: 5.71 MB / 0.9392 GB, free: 84.53 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002182/2.751, allocations: 60.67 kB / 0.9393 GB, free: 84.53 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03797/2.789, allocations: 13.48 MB / 0.9524 GB, free: 83.75 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001829/2.789, allocations: 95.27 kB / 0.9525 GB, free: 83.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003727/2.789, allocations: 197.7 kB / 0.9527 GB, free: 83.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005851/2.795, allocations: 1.376 MB / 0.954 GB, free: 83.72 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01518/2.81, allocations: 2.244 MB / 0.9562 GB, free: 83.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01973/2.83, allocations: 11.24 MB / 0.9672 GB, free: 77.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01266/2.843, allocations: 0.5338 MB / 0.9677 GB, free: 77.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002577/2.846, allocations: 0.5728 MB / 0.9683 GB, free: 77.63 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 902 * Number of states: 0 () * Number of discrete variables: 63 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (1175): * Single equations (assignments): 1169 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003685/2.849, allocations: 0.8427 MB / 0.9691 GB, free: 76.95 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002306/2.852, allocations: 0.6398 MB / 0.9697 GB, free: 76.59 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02021/2.872, allocations: 6.605 MB / 0.9762 GB, free: 74.18 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.379e-05/2.872, allocations: 37.25 kB / 0.9762 GB, free: 74.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.607e-05/2.872, allocations: 8.969 kB / 0.9762 GB, free: 74.18 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.524e-05/2.872, allocations: 18.25 kB / 0.9763 GB, free: 74.18 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04909/2.921, allocations: 15.39 MB / 0.9913 GB, free: 68.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.927e-05/2.921, allocations: 7.219 kB / 0.9913 GB, free: 68.58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00628/2.928, allocations: 0.5765 MB / 0.9919 GB, free: 68.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005078/2.933, allocations: 1.045 MB / 0.9929 GB, free: 68.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009941/2.934, allocations: 64.67 kB / 0.9929 GB, free: 68.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01868/2.953, allocations: 10.26 MB / 1.003 GB, free: 61.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/2.953, allocations: 7.25 kB / 1.003 GB, free: 61.79 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02847/2.981, allocations: 11.12 MB / 1.014 GB, free: 57.07 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00544/2.987, allocations: 1.205 MB / 1.015 GB, free: 56.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00284/2.99, allocations: 59.66 kB / 1.015 GB, free: 56.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006836/2.996, allocations: 206 kB / 1.015 GB, free: 56.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001319/2.998, allocations: 204.5 kB / 1.015 GB, free: 56.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004368/2.998, allocations: 83.8 kB / 1.016 GB, free: 56.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01309/3.011, allocations: 4.642 MB / 1.02 GB, free: 52.12 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.343e-06/3.011, allocations: 0 / 1.02 GB, free: 52.12 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01338/3.025, allocations: 1.796 MB / 1.022 GB, free: 50.33 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (286): * Single equations (assignments): 280 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02937/3.054, allocations: 12.01 MB / 1.034 GB, free: 39.58 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02122/3.076, allocations: 9.112 MB / 1.042 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/3.076, allocations: 8 kB / 1.042 GB, free: 31.28 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008566/3.084, allocations: 3.485 MB / 1.046 GB, free: 28.11 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007824/3.092, allocations: 0.8181 MB / 1.047 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05869/3.151, allocations: 17.72 MB / 1.064 GB, free: 12.08 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01485/3.166, allocations: 5.623 MB / 1.069 GB, free: 7.973 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01056/3.176, allocations: 3.735 MB / 1.073 GB, free: 4.5 MB / 0.5105 GB Notification: Performance of SimCode: time 2.916e-06/3.176, allocations: 0 / 1.073 GB, free: 4.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.652/9.828, allocations: 243.3 MB / 1.311 GB, free: 125.2 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat does not exist to compare? outputFormat=mat