Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",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.001641/0.001642, allocations: 182.8 kB / 13.19 MB, free: 2.129 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.715/1.715, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.0009925/0.0009923, allocations: 98.52 kB / 267.1 MB, free: 9.273 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.4707/0.4707, allocations: 43.47 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.002e-05/4.012e-05, allocations: 0 / 425.4 MB, free: 8.121 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1399, allocations: 58.84 MB / 484.2 MB, free: 13.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4573/0.5973, allocations: 106.7 MB / 0.5771 GB, free: 15.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.5976, allocations: 79.36 kB / 0.5771 GB, free: 15.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2035/0.8011, allocations: 76.77 MB / 0.6521 GB, free: 11.17 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.8012, allocations: 0 / 0.6521 GB, free: 11.17 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001643/0.8013, allocations: 71.94 kB / 0.6522 GB, free: 11.1 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.01003/0.8114, allocations: 3.598 MB / 0.6557 GB, free: 7.445 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.8114, allocations: 12.03 kB / 0.6557 GB, free: 7.434 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001897/0.8133, allocations: 0.6638 MB / 0.6564 GB, free: 6.758 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01757/0.8309, allocations: 4.332 MB / 0.6606 GB, free: 2.414 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01261/0.8436, allocations: 4.469 MB / 0.665 GB, free: 13.88 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002618/0.8439, allocations: 275.1 kB / 0.6652 GB, free: 13.61 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001778/0.8456, allocations: 371.7 kB / 0.6656 GB, free: 13.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.018/0.8637, allocations: 9.101 MB / 0.6745 GB, free: 3.137 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001585/0.8639, allocations: 63.41 kB / 0.6745 GB, free: 3.074 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006265/0.8645, allocations: 179.9 kB / 0.6747 GB, free: 2.898 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001149/0.8657, allocations: 0.8883 MB / 0.6756 GB, free: 2.012 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01553/0.8812, allocations: 7.21 MB / 0.6826 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2889/1.17, allocations: 44.14 MB / 0.7257 GB, free: 72.94 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008031/1.178, allocations: 3.48 MB / 0.7291 GB, free: 72.27 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/1.18, allocations: 1.592 MB / 0.7307 GB, free: 72.23 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009257/1.189, allocations: 7.198 MB / 0.7377 GB, free: 70.18 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/1.189, allocations: 50.58 kB / 0.7377 GB, free: 70.14 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=151): time 4.188e-06/1.189, allocations: 0 / 0.7377 GB, free: 70.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=188): time 0.04623/1.236, allocations: 16.23 MB / 0.7536 GB, free: 67.49 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.636e-05/1.236, allocations: 201.5 kB / 0.7538 GB, free: 67.27 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005397/1.241, allocations: 3.288 MB / 0.757 GB, free: 66.95 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004015/1.242, allocations: 55.42 kB / 0.757 GB, free: 66.91 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001746/1.243, allocations: 2.836 MB / 0.7598 GB, free: 65.47 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009439/1.244, allocations: 0.7165 MB / 0.7605 GB, free: 65.07 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002736/1.245, allocations: 114.9 kB / 0.7606 GB, free: 65.07 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003611/1.245, allocations: 0.5522 MB / 0.7612 GB, free: 64.75 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002731/1.248, allocations: 1.938 MB / 0.7631 GB, free: 64.73 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005182/1.253, allocations: 5.471 MB / 0.7684 GB, free: 59.69 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006263/1.259, allocations: 3.243 MB / 0.7716 GB, free: 58.65 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001061/1.259, allocations: 39.8 kB / 0.7716 GB, free: 58.65 MB / 0.4948 GB Notification: Performance of matching and sorting (n=765) (initialization): time 0.01718/1.277, allocations: 8.443 MB / 0.7798 GB, free: 56.06 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.836e-05/1.277, allocations: 58.53 kB / 0.7799 GB, free: 56.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001075/1.277, allocations: 125.2 kB / 0.78 GB, free: 56.06 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004684/1.281, allocations: 1.467 MB / 0.7815 GB, free: 55.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004099/1.286, allocations: 1.285 MB / 0.7827 GB, free: 55.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01215/1.298, allocations: 8.008 MB / 0.7905 GB, free: 51.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005558/1.303, allocations: 307.2 kB / 0.7908 GB, free: 51.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001448/1.305, allocations: 355.2 kB / 0.7912 GB, free: 51.58 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (697): * Single equations (assignments): 693 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002659/1.307, allocations: 0.5516 MB / 0.7917 GB, free: 51.12 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/1.308, allocations: 338.7 kB / 0.792 GB, free: 50.94 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009454/1.318, allocations: 3.597 MB / 0.7955 GB, free: 49.73 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-05/1.318, allocations: 24.98 kB / 0.7956 GB, free: 49.72 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.706e-05/1.318, allocations: 7.344 kB / 0.7956 GB, free: 49.72 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.3e-05/1.318, allocations: 10.81 kB / 0.7956 GB, free: 49.72 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01862/1.337, allocations: 7.893 MB / 0.8033 GB, free: 46.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.983e-05/1.337, allocations: 0 / 0.8033 GB, free: 46.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001288/1.338, allocations: 238.9 kB / 0.8035 GB, free: 46.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004543/1.343, allocations: 1.228 MB / 0.8047 GB, free: 46.66 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003131/1.343, allocations: 37.95 kB / 0.8047 GB, free: 46.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/1.354, allocations: 7.292 MB / 0.8119 GB, free: 42.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/1.354, allocations: 7.469 kB / 0.8119 GB, free: 42.97 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01147/1.365, allocations: 6.011 MB / 0.8177 GB, free: 40.55 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/1.367, allocations: 0.6063 MB / 0.8183 GB, free: 40.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008832/1.368, allocations: 26.92 kB / 0.8184 GB, free: 40.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001959/1.37, allocations: 98.52 kB / 0.8185 GB, free: 40.12 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004187/1.371, allocations: 103.5 kB / 0.8186 GB, free: 40.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001711/1.371, allocations: 48.81 kB / 0.8186 GB, free: 40.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004487/1.375, allocations: 2.283 MB / 0.8208 GB, free: 39.31 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.31e-07/1.375, allocations: 0 / 0.8208 GB, free: 39.31 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006179/1.382, allocations: 0.9786 MB / 0.8218 GB, free: 39.18 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01208/1.394, allocations: 6.828 MB / 0.8285 GB, free: 35.74 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00882/1.403, allocations: 4.881 MB / 0.8332 GB, free: 31.27 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/1.403, allocations: 0 / 0.8332 GB, free: 31.27 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00224/1.405, allocations: 1.586 MB / 0.8348 GB, free: 29.81 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/1.408, allocations: 367.2 kB / 0.8351 GB, free: 29.49 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02256/1.431, allocations: 8.054 MB / 0.843 GB, free: 22.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004411/1.435, allocations: 3.051 MB / 0.846 GB, free: 20.17 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005182/1.44, allocations: 1.826 MB / 0.8478 GB, free: 19.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002675/1.443, allocations: 1.649 MB / 0.8494 GB, free: 17.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.182e-06/1.443, allocations: 4 kB / 0.8494 GB, free: 17.49 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3795/1.823, allocations: 74.04 MB / 0.9217 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/1.823, allocations: 180.1 kB / 0.9218 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.495/6.318, allocations: 0 / 0.9218 GB, free: 108.1 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat