Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.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) 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(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Friction",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.001503/0.001503, 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 2.009/2.009, 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.001219/0.001218, allocations: 99.48 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.000414, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3534, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1362/0.4896, allocations: 80.78 MB / 455.4 MB, free: 15.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/0.4899, allocations: 79.95 kB / 455.5 MB, free: 15.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07389/0.5638, allocations: 13.72 MB / 469.2 MB, free: 2.055 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.613e-06/0.5639, allocations: 0 / 469.2 MB, free: 2.055 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.717e-05/0.564, allocations: 19.92 kB / 469.2 MB, free: 2.035 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.005523/0.5695, allocations: 1.184 MB / 470.4 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.5696, allocations: 8.031 kB / 470.4 MB, free: 0.793 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003838/0.57, allocations: 78.47 kB / 470.5 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002716/0.5703, allocations: 71.16 kB / 470.6 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001342/0.5716, allocations: 0.4909 MB / 471.1 MB, free: 108 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.758e-05/0.5717, allocations: 25 kB / 471.1 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002118/0.572, allocations: 36 kB / 471.1 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00376/0.5757, allocations: 0.9581 MB / 472.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.121e-05/0.5758, allocations: 11.84 kB / 472.1 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001665/0.576, allocations: 19.98 kB / 472.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.5761, allocations: 8 kB / 472.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005063/0.5811, allocations: 1.197 MB / 473.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009984/0.5912, allocations: 2.413 MB / 475.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003166/0.5944, allocations: 0.7468 MB / 476.5 MB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001814/0.5946, allocations: 15.94 kB / 476.5 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00314/0.5978, allocations: 0.8299 MB / 477.3 MB, free: 9.715 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 5.531e-06/0.5979, allocations: 0 / 477.3 MB, free: 9.715 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.02489/0.6228, allocations: 5.124 MB / 482.4 MB, free: 4.434 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.433e-05/0.6229, allocations: 81.11 kB / 482.5 MB, free: 4.336 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.624, allocations: 0.5384 MB / 483.1 MB, free: 3.789 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000403/0.6245, allocations: 49.69 kB / 483.1 MB, free: 3.734 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003428/0.6248, allocations: 310.9 kB / 483.4 MB, free: 3.426 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004385/0.6253, allocations: 173.7 kB / 483.6 MB, free: 3.254 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.6255, allocations: 16 kB / 483.6 MB, free: 3.238 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.6257, allocations: 334.8 kB / 483.9 MB, free: 2.902 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002517/0.6282, allocations: 0.5947 MB / 484.5 MB, free: 2.309 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00269/0.6309, allocations: 0.6862 MB / 485.2 MB, free: 1.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002346/0.6333, allocations: 0.5136 MB / 485.7 MB, free: 1.078 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.6334, allocations: 0 / 485.7 MB, free: 1.078 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.007785/0.6412, allocations: 1.807 MB / 487.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/0.6413, allocations: 4 kB / 487.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.264e-05/0.6413, allocations: 8 kB / 487.5 MB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009375/0.6507, allocations: 4.188 MB / 491.7 MB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.6518, allocations: 123.8 kB / 491.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01339/0.6653, allocations: 5.409 MB / 497.3 MB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00306/0.6684, allocations: 299.7 kB / 497.5 MB, free: 4.922 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003799/0.6688, allocations: 107.9 kB / 497.7 MB, free: 4.816 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008426/0.6697, allocations: 256 kB / 497.9 MB, free: 4.559 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002857/0.67, allocations: 67.16 kB / 498 MB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006413/0.6764, allocations: 1.575 MB / 499.5 MB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.922e-05/0.6765, allocations: 8 kB / 499.5 MB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.6765, allocations: 0 / 499.5 MB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-05/0.6765, allocations: 7.938 kB / 499.6 MB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009917/0.6865, allocations: 2.61 MB / 0.4904 GB, free: 200 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.358e-05/0.6865, allocations: 128 / 0.4904 GB, free: 200 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.6876, allocations: 99.97 kB / 0.4905 GB, free: 100 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2838/0.9714, allocations: 4.205 MB / 0.4946 GB, free: 111.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002068/0.9717, allocations: 33.72 kB / 0.4946 GB, free: 111.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01054/0.9823, allocations: 5.15 MB / 0.4997 GB, free: 108.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.9823, allocations: 1.125 kB / 0.4997 GB, free: 108.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009787/0.9921, allocations: 2.498 MB / 0.5021 GB, free: 107.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009597/0.9931, allocations: 313.5 kB / 0.5024 GB, free: 107.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002704/0.9934, allocations: 27.44 kB / 0.5024 GB, free: 107.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002936/0.9964, allocations: 305.2 kB / 0.5027 GB, free: 107.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00264/0.999, allocations: 0.6539 MB / 0.5034 GB, free: 107.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000268/0.9994, allocations: 93.5 kB / 0.5034 GB, free: 107.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009205/1, allocations: 0.5177 MB / 0.504 GB, free: 107.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.312e-06/1, allocations: 0 / 0.504 GB, free: 107.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001304/1.002, allocations: 236.6 kB / 0.5042 GB, free: 107.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * 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: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.009591/1.011, allocations: 3.369 MB / 0.5075 GB, free: 105.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005071/1.016, allocations: 1.532 MB / 0.509 GB, free: 104.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/1.016, allocations: 0 / 0.509 GB, free: 104.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002749/1.019, allocations: 0.8773 MB / 0.5098 GB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000813/1.02, allocations: 57.53 kB / 0.5099 GB, free: 104.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01956/1.04, allocations: 7.767 MB / 0.5175 GB, free: 97.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004793/1.04, allocations: 0.9426 MB / 0.5184 GB, free: 96.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004724/1.041, allocations: 196 kB / 0.5186 GB, free: 95.97 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/1.041, allocations: 0 / 0.5186 GB, free: 95.97 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.052/4.093, allocations: 18.45 MB / 0.5366 GB, free: 77.51 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat