Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.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) 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(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",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.00143/0.00143, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008964/0.0008964, allocations: 90.11 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002917, allocations: 7.984 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2683, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1123/0.3806, allocations: 82.4 MB / 484 MB, free: 14.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.3809, allocations: 75.94 kB / 484 MB, free: 13.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04083/0.4218, allocations: 13.9 MB / 498 MB, free: 40 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4218, allocations: 4 kB / 498 MB, free: 36 kB / 362.7 MB Notification: Performance of Transformations before backend: time 3.279e-05/0.4219, allocations: 8 kB / 498 MB, free: 28 kB / 362.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.002793/0.4247, allocations: 1.173 MB / 499.1 MB, free: 14.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.4247, allocations: 12.03 kB / 499.1 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/0.4249, allocations: 78.52 kB / 499.2 MB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.4251, allocations: 75.06 kB / 499.3 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008897/0.426, allocations: 498.8 kB / 499.8 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.436e-05/0.426, allocations: 29 kB / 499.8 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.4261, allocations: 36 kB / 499.8 MB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00194/0.4281, allocations: 0.9697 MB / 0.4891 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.4281, allocations: 7.906 kB / 0.4891 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-05/0.4282, allocations: 12 kB / 0.4891 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.4282, allocations: 12 kB / 0.4891 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002553/0.4308, allocations: 1.201 MB / 0.4903 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005196/0.436, allocations: 2.4 MB / 0.4926 GB, free: 9.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.4376, allocations: 0.7585 MB / 0.4934 GB, free: 8.562 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.549e-05/0.4376, allocations: 16.73 kB / 0.4934 GB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001489/0.4391, allocations: 0.83 MB / 0.4942 GB, free: 7.699 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.525e-06/0.4392, allocations: 3.938 kB / 0.4942 GB, free: 7.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=51): time 0.01219/0.4513, allocations: 5.113 MB / 0.4992 GB, free: 2.426 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.4514, allocations: 85.11 kB / 0.4993 GB, free: 2.324 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006679/0.4521, allocations: 0.5384 MB / 0.4998 GB, free: 1.777 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001063/0.4522, allocations: 45.7 kB / 0.4998 GB, free: 1.727 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002165/0.4525, allocations: 288.4 kB / 0.5001 GB, free: 1.441 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.4526, allocations: 177.8 kB / 0.5003 GB, free: 1.266 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.477e-05/0.4527, allocations: 11.94 kB / 0.5003 GB, free: 1.254 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.4529, allocations: 378.8 kB / 0.5007 GB, free: 0.875 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.4541, allocations: 0.5947 MB / 0.5012 GB, free: 288 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2501/0.7042, allocations: 0.6759 MB / 0.5019 GB, free: 99.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.7057, allocations: 0.5204 MB / 0.5024 GB, free: 99.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.7057, allocations: 0.625 kB / 0.5024 GB, free: 99.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004454/0.7102, allocations: 1.85 MB / 0.5042 GB, free: 99.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.7102, allocations: 7.297 kB / 0.5042 GB, free: 99.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.696e-05/0.7103, allocations: 8.656 kB / 0.5042 GB, free: 99.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004743/0.715, allocations: 4.186 MB / 0.5083 GB, free: 99.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004571/0.7155, allocations: 114.2 kB / 0.5084 GB, free: 99.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005913/0.7214, allocations: 5.427 MB / 0.5137 GB, free: 96.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.7227, allocations: 291.9 kB / 0.514 GB, free: 95.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/0.7229, allocations: 103.7 kB / 0.5141 GB, free: 95.97 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.0004303/0.7233, allocations: 266 kB / 0.5144 GB, free: 95.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.7234, allocations: 65.78 kB / 0.5144 GB, free: 95.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002893/0.7263, allocations: 1.574 MB / 0.516 GB, free: 95.35 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.7264, allocations: 6.562 kB / 0.516 GB, free: 95.35 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.7264, allocations: 3.75 kB / 0.516 GB, free: 95.35 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.7264, allocations: 4 kB / 0.516 GB, free: 95.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004438/0.7308, allocations: 2.613 MB / 0.5185 GB, free: 93.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.7308, allocations: 0 / 0.5185 GB, free: 93.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004456/0.7313, allocations: 95.12 kB / 0.5186 GB, free: 93.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004046/0.7353, allocations: 4.206 MB / 0.5227 GB, free: 89.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-05/0.7354, allocations: 39.91 kB / 0.5228 GB, free: 89.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005176/0.7406, allocations: 5.147 MB / 0.5278 GB, free: 83.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.7407, allocations: 7.688 kB / 0.5278 GB, free: 83.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00436/0.745, allocations: 2.505 MB / 0.5302 GB, free: 81.13 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006723/0.7457, allocations: 310.3 kB / 0.5305 GB, free: 80.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.7459, allocations: 27.94 kB / 0.5306 GB, free: 80.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/0.7472, allocations: 303.7 kB / 0.5309 GB, free: 80.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00125/0.7485, allocations: 0.6549 MB / 0.5315 GB, free: 79.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.7486, allocations: 93.56 kB / 0.5316 GB, free: 79.74 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005528/0.7492, allocations: 0.5146 MB / 0.5321 GB, free: 79.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7492, allocations: 4 kB / 0.5321 GB, free: 79.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008514/0.75, allocations: 235 kB / 0.5323 GB, free: 79 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.004842/0.7549, allocations: 3.365 MB / 0.5356 GB, free: 75.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00275/0.7577, allocations: 1.524 MB / 0.5371 GB, free: 74.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.7577, allocations: 8.062 kB / 0.5371 GB, free: 74.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.7592, allocations: 0.9173 MB / 0.538 GB, free: 73.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005813/0.7598, allocations: 73.25 kB / 0.5381 GB, free: 73.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.7708, allocations: 7.738 MB / 0.5456 GB, free: 65.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.7712, allocations: 0.93 MB / 0.5465 GB, free: 64.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002513/0.7715, allocations: 47.27 kB / 0.5466 GB, free: 64.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.7717, allocations: 195.4 kB / 0.5468 GB, free: 64 MB / 378.7 MB Notification: Performance of SimCode: time 1.753e-06/0.7717, allocations: 0 / 0.5468 GB, free: 64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05171/0.8235, allocations: 26.26 MB / 0.5724 GB, free: 37.86 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001891/0.8237, allocations: 217.7 kB / 0.5726 GB, free: 37.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.62/3.444, allocations: 0 / 0.5726 GB, free: 37.61 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat