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.001118/0.001118, allocations: 183.1 kB / 15.76 MB, free: 6.367 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.49/1.49, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009381/0.0009379, allocations: 94.86 kB / 270.2 MB, free: 13.36 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.2348/0.2348, allocations: 43.57 MB / 362.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003421/0.0003421, allocations: 12 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1308, allocations: 58.86 MB / 490.3 MB, free: 8.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4342/0.5651, allocations: 106.8 MB / 0.5831 GB, free: 9.152 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.5655, allocations: 83.7 kB / 0.5832 GB, free: 9.109 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2094/0.7748, allocations: 76.74 MB / 0.6581 GB, free: 4.32 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.217e-06/0.7749, allocations: 0 / 0.6581 GB, free: 4.32 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000302/0.7752, allocations: 68 kB / 0.6582 GB, free: 4.254 MB / 458.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.01475/0.79, allocations: 3.865 MB / 0.662 GB, free: 332 kB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.509e-05/0.7901, allocations: 8.031 kB / 0.662 GB, free: 324 kB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003737/0.7938, allocations: 0.6677 MB / 0.6626 GB, free: 15.64 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01875/0.8126, allocations: 4.324 MB / 0.6669 GB, free: 11.3 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01462/0.8272, allocations: 4.499 MB / 0.6712 GB, free: 6.738 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003082/0.8276, allocations: 275.1 kB / 0.6715 GB, free: 6.469 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001696/0.8293, allocations: 359.8 kB / 0.6718 GB, free: 6.117 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02014/0.8495, allocations: 9.172 MB / 0.6808 GB, free: 11.93 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002193/0.8498, allocations: 59.47 kB / 0.6809 GB, free: 11.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008258/0.8506, allocations: 179.9 kB / 0.681 GB, free: 11.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001472/0.8521, allocations: 0.8922 MB / 0.6819 GB, free: 10.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01613/0.8682, allocations: 7.318 MB / 0.6891 GB, free: 3.477 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3733/1.242, allocations: 44.14 MB / 0.7322 GB, free: 95.12 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/1.252, allocations: 3.503 MB / 0.7356 GB, free: 94.45 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01399/1.266, allocations: 7.2 MB / 0.7426 GB, free: 92.38 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.713e-05/1.266, allocations: 54.3 kB / 0.7427 GB, free: 92.34 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=151): time 6.772e-06/1.266, allocations: 0 / 0.7427 GB, free: 92.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=188): time 0.06219/1.329, allocations: 19.38 MB / 0.7616 GB, free: 89.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/1.329, allocations: 202.3 kB / 0.7618 GB, free: 88.98 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005436/1.334, allocations: 3.326 MB / 0.765 GB, free: 88.67 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004103/1.335, allocations: 49.98 kB / 0.7651 GB, free: 88.64 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00169/1.336, allocations: 2.836 MB / 0.7678 GB, free: 87.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007414/1.337, allocations: 0.7125 MB / 0.7685 GB, free: 86.79 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002588/1.337, allocations: 121.2 kB / 0.7687 GB, free: 86.79 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002869/1.338, allocations: 0.5542 MB / 0.7692 GB, free: 86.47 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00254/1.34, allocations: 1.978 MB / 0.7711 GB, free: 86.19 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00392/1.344, allocations: 5.527 MB / 0.7765 GB, free: 80.76 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003842/1.348, allocations: 3.25 MB / 0.7797 GB, free: 79.62 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-05/1.348, allocations: 41.05 kB / 0.7797 GB, free: 79.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=765) (initialization): time 0.01715/1.365, allocations: 8.569 MB / 0.7881 GB, free: 76.92 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001143/1.365, allocations: 59.95 kB / 0.7882 GB, free: 76.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001887/1.365, allocations: 127.5 kB / 0.7883 GB, free: 76.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005975/1.371, allocations: 1.514 MB / 0.7898 GB, free: 76.67 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004684/1.376, allocations: 1.282 MB / 0.791 GB, free: 76.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0123/1.389, allocations: 8.4 MB / 0.7992 GB, free: 72.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005146/1.394, allocations: 310.4 kB / 0.7995 GB, free: 72.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001255/1.395, allocations: 358.9 kB / 0.7999 GB, free: 72.28 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 () * Number of clocked 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.00465/1.4, allocations: 1.886 MB / 0.8017 GB, free: 71.38 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008259/1.401, allocations: 341.6 kB / 0.802 GB, free: 71.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009156/1.41, allocations: 3.668 MB / 0.8056 GB, free: 69.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.966e-05/1.41, allocations: 20.94 kB / 0.8056 GB, free: 69.78 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.153e-05/1.41, allocations: 12 kB / 0.8056 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.089e-05/1.41, allocations: 11.08 kB / 0.8057 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01972/1.43, allocations: 7.954 MB / 0.8134 GB, free: 63.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.263e-05/1.43, allocations: 0 / 0.8134 GB, free: 63.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/1.431, allocations: 242 kB / 0.8137 GB, free: 63.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005069/1.436, allocations: 1.278 MB / 0.8149 GB, free: 62.39 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003384/1.436, allocations: 32.64 kB / 0.8149 GB, free: 62.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0111/1.447, allocations: 7.67 MB / 0.8224 GB, free: 55.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/1.448, allocations: 4 kB / 0.8224 GB, free: 55.69 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01166/1.459, allocations: 6.121 MB / 0.8284 GB, free: 50.51 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002351/1.462, allocations: 0.6072 MB / 0.829 GB, free: 49.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001021/1.463, allocations: 31.95 kB / 0.829 GB, free: 49.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001968/1.465, allocations: 83.77 kB / 0.8291 GB, free: 49.84 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003961/1.465, allocations: 117.1 kB / 0.8292 GB, free: 49.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001662/1.465, allocations: 48.06 kB / 0.8293 GB, free: 49.72 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004893/1.47, allocations: 2.316 MB / 0.8315 GB, free: 47.83 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.2e-07/1.47, allocations: 0 / 0.8315 GB, free: 47.83 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009056/1.479, allocations: 0.9667 MB / 0.8325 GB, free: 46.87 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 () * Number of clocked 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.01317/1.492, allocations: 6.939 MB / 0.8392 GB, free: 40.88 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008948/1.501, allocations: 4.962 MB / 0.8441 GB, free: 36.33 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/1.502, allocations: 0 / 0.8441 GB, free: 36.33 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002538/1.504, allocations: 1.625 MB / 0.8457 GB, free: 34.69 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002911/1.507, allocations: 362.3 kB / 0.846 GB, free: 34.34 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3674/1.874, allocations: 118.2 MB / 0.9615 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003547/1.878, allocations: 3.047 MB / 0.9645 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005121/1.883, allocations: 1.819 MB / 0.9662 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002169/1.885, allocations: 1.657 MB / 0.9679 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of SimCode: time 9.42e-07/1.885, allocations: 0 / 0.9679 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1409/2.026, allocations: 74.02 MB / 1.04 GB, free: 69.95 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001632/2.027, allocations: 206.7 kB / 1.04 GB, free: 69.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.517/6.543, allocations: 0 / 1.04 GB, free: 69.7 MB / 0.5261 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