Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.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.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar",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.001491/0.00149, allocations: 185.9 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 1.974/1.974, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.00161/0.00161, allocations: 93.53 kB / 270.9 MB, free: 8.395 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.5244/0.5244, allocations: 43.55 MB / 362.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004978/0.0004976, allocations: 20 kB / 431.5 MB, free: 5.848 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1379, allocations: 58.83 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.504/0.6419, allocations: 106.2 MB / 0.5825 GB, free: 12.18 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003511/0.6423, allocations: 74.19 kB / 0.5826 GB, free: 12.11 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9226/1.565, allocations: 117.6 MB / 0.6975 GB, free: 92.73 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.887e-06/1.565, allocations: 0 / 0.6975 GB, free: 92.73 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003405/1.565, allocations: 93.86 kB / 0.6976 GB, free: 92.73 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: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.02675/1.592, allocations: 4.713 MB / 0.7022 GB, free: 90.65 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.048e-05/1.592, allocations: 12.59 kB / 0.7022 GB, free: 90.65 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006492/1.599, allocations: 0.9562 MB / 0.7031 GB, free: 90.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04129/1.64, allocations: 3.66 MB / 0.7067 GB, free: 90.23 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02566/1.666, allocations: 4.838 MB / 0.7114 GB, free: 89.61 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009622/1.667, allocations: 379.1 kB / 0.7118 GB, free: 89.59 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004535/1.671, allocations: 0.4922 MB / 0.7123 GB, free: 89.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05486/1.726, allocations: 12.22 MB / 0.7242 GB, free: 87.96 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008568/1.727, allocations: 31.25 kB / 0.7242 GB, free: 87.94 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003938/1.731, allocations: 226.1 kB / 0.7244 GB, free: 87.94 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004687/1.736, allocations: 1.407 MB / 0.7258 GB, free: 87.89 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04347/1.78, allocations: 11.34 MB / 0.7369 GB, free: 84.73 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1201/1.9, allocations: 42.83 MB / 0.7787 GB, free: 58.37 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02177/1.921, allocations: 4.73 MB / 0.7833 GB, free: 56.11 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002254/1.924, allocations: 1.316 MB / 0.7846 GB, free: 54.93 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.406e-05/1.924, allocations: 61.78 kB / 0.7847 GB, free: 54.87 MB / 490.7 MB Notification: Performance of pre-optimization done (n=250): time 9.257e-06/1.924, allocations: 0 / 0.7847 GB, free: 54.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=268): time 0.1077/2.032, allocations: 19.83 MB / 0.804 GB, free: 39.92 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.395e-05/2.032, allocations: 103 kB / 0.8041 GB, free: 39.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009048/2.041, allocations: 2.905 MB / 0.807 GB, free: 37.35 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000731/2.042, allocations: 61.7 kB / 0.807 GB, free: 37.28 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003292/2.045, allocations: 3.232 MB / 0.8102 GB, free: 34.38 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00173/2.047, allocations: 0.987 MB / 0.8112 GB, free: 33.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008504/2.048, allocations: 116 kB / 0.8113 GB, free: 33.39 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004815/2.048, allocations: 0.5739 MB / 0.8118 GB, free: 32.88 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006199/2.054, allocations: 2.453 MB / 0.8142 GB, free: 30.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008681/2.063, allocations: 5.84 MB / 0.8199 GB, free: 23.53 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008524/2.072, allocations: 3.782 MB / 0.8236 GB, free: 19.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001212/2.072, allocations: 32 kB / 0.8237 GB, free: 19.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=808) (initialization): time 0.02556/2.097, allocations: 8.997 MB / 0.8324 GB, free: 10.71 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/2.098, allocations: 56 kB / 0.8325 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001842/2.098, allocations: 120 kB / 0.8326 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005592/2.103, allocations: 1.062 MB / 0.8336 GB, free: 9.473 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008712/2.112, allocations: 1.392 MB / 0.835 GB, free: 8.078 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/2.124, allocations: 5.225 MB / 0.8401 GB, free: 2.723 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006218/2.13, allocations: 327.9 kB / 0.8404 GB, free: 2.402 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001423/2.131, allocations: 351.9 kB / 0.8408 GB, free: 2.059 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * Number of states: 0 () * Number of discrete variables: 42 (axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (746): * Single equations (assignments): 739 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007286/2.139, allocations: 2.482 MB / 0.8432 GB, free: 15.57 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009676/2.14, allocations: 323.7 kB / 0.8435 GB, free: 15.25 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01848/2.158, allocations: 5.349 MB / 0.8487 GB, free: 9.84 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001269/2.158, allocations: 44 kB / 0.8488 GB, free: 9.797 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.721e-05/2.158, allocations: 7.688 kB / 0.8488 GB, free: 9.793 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.835e-05/2.158, allocations: 11.95 kB / 0.8488 GB, free: 9.781 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4126/2.571, allocations: 13.32 MB / 0.8618 GB, free: 96.22 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.917e-05/2.571, allocations: 12.06 kB / 0.8618 GB, free: 96.22 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003885/2.575, allocations: 429.5 kB / 0.8622 GB, free: 96.22 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005339/2.58, allocations: 0.8861 MB / 0.8631 GB, free: 96.21 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006984/2.581, allocations: 54.52 kB / 0.8631 GB, free: 96.21 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/2.592, allocations: 4.57 MB / 0.8676 GB, free: 94.97 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.969e-05/2.592, allocations: 20.22 kB / 0.8676 GB, free: 94.97 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02213/2.615, allocations: 9.088 MB / 0.8765 GB, free: 92.85 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002849/2.617, allocations: 0.7347 MB / 0.8772 GB, free: 92.76 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0012/2.619, allocations: 51.03 kB / 0.8772 GB, free: 92.76 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003232/2.622, allocations: 155.8 kB / 0.8774 GB, free: 92.75 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008475/2.623, allocations: 165.7 kB / 0.8776 GB, free: 92.74 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002842/2.623, allocations: 79.17 kB / 0.8776 GB, free: 92.74 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.005423/2.629, allocations: 1.993 MB / 0.8796 GB, free: 92.6 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.575e-06/2.629, allocations: 2.438 kB / 0.8796 GB, free: 92.6 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.008067/2.637, allocations: 1.123 MB / 0.8807 GB, free: 92.6 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.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 (209): * Single equations (assignments): 202 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02272/2.66, allocations: 12.6 MB / 0.893 GB, free: 87.29 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01569/2.675, allocations: 6.006 MB / 0.8988 GB, free: 87.07 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 2.128e-05/2.675, allocations: 4.688 kB / 0.8988 GB, free: 87.07 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.006194/2.682, allocations: 2.242 MB / 0.901 GB, free: 86.88 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003492/2.685, allocations: 386.1 kB / 0.9014 GB, free: 86.86 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1181/2.803, allocations: 118.1 MB / 1.017 GB, free: 31.33 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009222/2.813, allocations: 3.938 MB / 1.021 GB, free: 29.93 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006341/2.819, allocations: 2.282 MB / 1.023 GB, free: 28.06 MB / 0.5417 GB Notification: Performance of SimCode: time 1.603e-06/2.819, allocations: 0 / 1.023 GB, free: 28.06 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.741/7.56, allocations: 111.8 MB / 1.132 GB, free: 123.8 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat