Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 171.8 kB / 8.738 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 221.5 MB / 230.7 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000897/0.0008971, allocations: 94.09 kB / 281.6 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2133/0.2133, allocations: 44.16 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.674e-05/2.678e-05, allocations: 8.156 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1817/0.1818, allocations: 61.91 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5193/0.7011, allocations: 107 MB / 0.5993 GB, free: 5.352 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002518/0.7014, allocations: 71.97 kB / 0.5993 GB, free: 5.281 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6185/1.32, allocations: 113.5 MB / 0.7102 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.484e-06/1.32, allocations: 0 / 0.7102 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000268/1.32, allocations: 88.22 kB / 0.7103 GB, free: 115.6 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01794/1.338, allocations: 4.316 MB / 0.7145 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/1.338, allocations: 12.23 kB / 0.7145 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01757/1.356, allocations: 3.616 MB / 0.7181 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01495/1.371, allocations: 4.614 MB / 0.7226 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002808/1.371, allocations: 161.1 kB / 0.7227 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003258/1.374, allocations: 275.9 kB / 0.723 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01581/1.39, allocations: 8.223 MB / 0.731 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02535/1.416, allocations: 10.87 MB / 0.7416 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002809/1.416, allocations: 39.5 kB / 0.7417 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002314/1.418, allocations: 17.62 kB / 0.7417 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002238/1.421, allocations: 1.32 MB / 0.743 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06029/1.481, allocations: 38.4 MB / 0.7805 GB, free: 88.45 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005051/1.486, allocations: 4.355 MB / 0.7847 GB, free: 86.02 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002868/1.489, allocations: 2.361 MB / 0.787 GB, free: 85.06 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001018/1.49, allocations: 1.315 MB / 0.7883 GB, free: 83.63 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/1.49, allocations: 59.72 kB / 0.7884 GB, free: 83.57 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=251): time 5.19e-06/1.49, allocations: 0 / 0.7884 GB, free: 83.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=270): time 0.03476/1.525, allocations: 17.97 MB / 0.8059 GB, free: 67.82 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/1.525, allocations: 73.41 kB / 0.806 GB, free: 67.73 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00485/1.53, allocations: 2.577 MB / 0.8085 GB, free: 65.47 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007285/1.531, allocations: 25.7 kB / 0.8085 GB, free: 65.44 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002028/1.533, allocations: 3.219 MB / 0.8117 GB, free: 62.52 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001365/1.534, allocations: 0.9593 MB / 0.8126 GB, free: 61.66 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002704/1.534, allocations: 0 / 0.8126 GB, free: 61.66 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000366/1.535, allocations: 0.5786 MB / 0.8132 GB, free: 61.15 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002955/1.538, allocations: 2.37 MB / 0.8155 GB, free: 59.04 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004236/1.542, allocations: 5.841 MB / 0.8212 GB, free: 51.82 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004094/1.546, allocations: 3.742 MB / 0.8249 GB, free: 48.65 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.444e-05/1.546, allocations: 36 kB / 0.8249 GB, free: 48.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01265/1.559, allocations: 8.4 MB / 0.8331 GB, free: 41.47 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.464e-05/1.559, allocations: 56 kB / 0.8332 GB, free: 41.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001221/1.559, allocations: 124 kB / 0.8333 GB, free: 41.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002814/1.562, allocations: 1.063 MB / 0.8343 GB, free: 40.56 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004731/1.566, allocations: 1.438 MB / 0.8357 GB, free: 39.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005746/1.572, allocations: 4.865 MB / 0.8405 GB, free: 34.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005105/1.577, allocations: 207.8 kB / 0.8407 GB, free: 33.97 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001085/1.578, allocations: 367.9 kB / 0.841 GB, free: 33.61 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 563 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,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.arrowLine.twoHeadedArrow,axis2.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (772): * Single equations (assignments): 765 * 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 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009497/1.579, allocations: 439 kB / 0.8414 GB, free: 33.18 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007314/1.587, allocations: 4.623 MB / 0.8459 GB, free: 28.5 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005837/1.587, allocations: 300.1 kB / 0.8462 GB, free: 28.21 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008049/1.595, allocations: 5.176 MB / 0.8513 GB, free: 22.97 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.513e-05/1.596, allocations: 51.34 kB / 0.8513 GB, free: 22.92 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.427e-06/1.596, allocations: 4 kB / 0.8513 GB, free: 22.92 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.009e-05/1.596, allocations: 11.95 kB / 0.8514 GB, free: 22.91 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01856/1.614, allocations: 11.81 MB / 0.8629 GB, free: 10.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.859e-05/1.614, allocations: 15.95 kB / 0.8629 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001761/1.616, allocations: 431.3 kB / 0.8633 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002595/1.619, allocations: 0.8791 MB / 0.8642 GB, free: 9.598 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002117/1.619, allocations: 23.98 kB / 0.8642 GB, free: 9.574 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004887/1.624, allocations: 4.234 MB / 0.8683 GB, free: 5.234 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.43e-05/1.624, allocations: 19.88 kB / 0.8683 GB, free: 5.215 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01253/1.636, allocations: 8.89 MB / 0.877 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/1.638, allocations: 345.2 kB / 0.8774 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004602/1.638, allocations: 20 kB / 0.8774 GB, free: 11.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001466/1.64, allocations: 115.8 kB / 0.8775 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003471/1.64, allocations: 165.7 kB / 0.8776 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001887/1.64, allocations: 79.92 kB / 0.8777 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003003/1.643, allocations: 1.688 MB / 0.8794 GB, free: 9.277 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.41e-07/1.643, allocations: 0 / 0.8794 GB, free: 9.277 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006935/1.65, allocations: 0.9492 MB / 0.8803 GB, free: 8.328 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (211): * Single equations (assignments): 204 * 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.3749/2.025, allocations: 12.48 MB / 0.8925 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01063/2.036, allocations: 5.731 MB / 0.8981 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-05/2.036, allocations: 4.281 kB / 0.8981 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003803/2.04, allocations: 2.178 MB / 0.9002 GB, free: 117 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002234/2.042, allocations: 288.5 kB / 0.9005 GB, free: 117 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02486/2.067, allocations: 10.91 MB / 0.9111 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003893/2.071, allocations: 3.815 MB / 0.9149 GB, free: 114 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004917/2.076, allocations: 2.255 MB / 0.9171 GB, free: 114 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002666/2.078, allocations: 2.109 MB / 0.9191 GB, free: 114 MB / 0.5105 GB Notification: Performance of SimCode: time 1.163e-06/2.078, allocations: 1.531 kB / 0.9191 GB, free: 114 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1241/2.203, allocations: 73.18 MB / 0.9906 GB, free: 79.93 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/2.203, allocations: 137.3 kB / 0.9907 GB, free: 79.73 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.01/6.212, allocations: 0 / 0.9907 GB, free: 79.73 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat