Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_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.001226/0.001226, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.526/1.526, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.001001/0.001001, allocations: 88.11 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002878/0.0002879, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.27, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08852/0.3586, allocations: 80.77 MB / 456.7 MB, free: 15.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.3588, allocations: 83.89 kB / 456.8 MB, free: 15.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03779/0.3966, allocations: 13.72 MB / 470.5 MB, free: 2.051 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.3967, allocations: 0 / 470.5 MB, free: 2.051 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.418e-05/0.3967, allocations: 15.94 kB / 470.5 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.002745/0.3995, allocations: 1.188 MB / 471.7 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3995, allocations: 8.031 kB / 471.7 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001815/0.3997, allocations: 78.52 kB / 471.8 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.3999, allocations: 79.09 kB / 471.8 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008373/0.4007, allocations: 498.7 kB / 472.3 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.229e-05/0.4008, allocations: 33 kB / 472.4 MB, free: 68 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.4009, allocations: 40 kB / 472.4 MB, free: 28 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00181/0.4027, allocations: 0.9542 MB / 473.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.4028, allocations: 7.844 kB / 473.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.142e-05/0.4029, allocations: 19.98 kB / 473.4 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.4029, allocations: 12 kB / 473.4 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002379/0.4053, allocations: 1.197 MB / 474.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005338/0.4106, allocations: 2.405 MB / 477 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.4122, allocations: 0.7585 MB / 477.8 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.588e-05/0.4122, allocations: 4 kB / 477.8 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001466/0.4137, allocations: 0.83 MB / 478.6 MB, free: 9.707 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 3.627e-06/0.4137, allocations: 0 / 478.6 MB, free: 9.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.01157/0.4253, allocations: 5.121 MB / 483.7 MB, free: 4.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.4254, allocations: 85.11 kB / 483.8 MB, free: 4.328 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006752/0.4261, allocations: 0.5345 MB / 484.3 MB, free: 3.785 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/0.4262, allocations: 49.69 kB / 484.4 MB, free: 3.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.4264, allocations: 292.4 kB / 484.7 MB, free: 3.438 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.4266, allocations: 169.7 kB / 484.8 MB, free: 3.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-05/0.4267, allocations: 19.98 kB / 484.8 MB, free: 3.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.4268, allocations: 382.7 kB / 485.2 MB, free: 2.867 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.428, allocations: 0.5947 MB / 485.8 MB, free: 2.273 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/0.4291, allocations: 0.6862 MB / 486.5 MB, free: 1.555 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.4302, allocations: 0.5098 MB / 487 MB, free: 1.047 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4302, allocations: 0 / 487 MB, free: 1.047 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003581/0.4338, allocations: 1.858 MB / 488.9 MB, free: 15.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.4338, allocations: 12.03 kB / 488.9 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.303e-05/0.4339, allocations: 8 kB / 488.9 MB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005044/0.4389, allocations: 4.172 MB / 493.1 MB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004608/0.4394, allocations: 119.8 kB / 493.2 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00674/0.4462, allocations: 5.412 MB / 498.6 MB, free: 5.141 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/0.4476, allocations: 303.7 kB / 498.9 MB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001692/0.4478, allocations: 103.9 kB / 499 MB, free: 4.742 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.0005329/0.4483, allocations: 256.4 kB / 499.2 MB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.4485, allocations: 71.16 kB / 499.3 MB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003287/0.4518, allocations: 1.571 MB / 0.4891 GB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.4518, allocations: 4 kB / 0.4891 GB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.4518, allocations: 0 / 0.4891 GB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.4518, allocations: 11.94 kB / 0.4892 GB, free: 2.805 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00523/0.4571, allocations: 2.614 MB / 0.4917 GB, free: 120 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.702e-05/0.4571, allocations: 0 / 0.4917 GB, free: 120 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004647/0.4576, allocations: 95.86 kB / 0.4918 GB, free: 24 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1837/0.6413, allocations: 4.208 MB / 0.4959 GB, free: 111.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001829/0.6415, allocations: 39.02 kB / 0.4959 GB, free: 111.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005785/0.6473, allocations: 5.146 MB / 0.501 GB, free: 108.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6473, allocations: 6.109 kB / 0.501 GB, free: 108.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004378/0.6517, allocations: 2.492 MB / 0.5034 GB, free: 108.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005611/0.6523, allocations: 319.2 kB / 0.5037 GB, free: 108.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.6524, allocations: 19.31 kB / 0.5037 GB, free: 108.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.6537, allocations: 311 kB / 0.504 GB, free: 108.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001172/0.6549, allocations: 0.6532 MB / 0.5047 GB, free: 108 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.655, allocations: 94.84 kB / 0.5048 GB, free: 108 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004712/0.6555, allocations: 0.5188 MB / 0.5053 GB, free: 107.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6555, allocations: 0 / 0.5053 GB, free: 107.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007172/0.6562, allocations: 229.6 kB / 0.5055 GB, free: 107.8 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.00444/0.6607, allocations: 3.373 MB / 0.5088 GB, free: 106 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.663, allocations: 1.529 MB / 0.5103 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.6631, allocations: 3.938 kB / 0.5103 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.6645, allocations: 0.9261 MB / 0.5112 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004369/0.6649, allocations: 52.83 kB / 0.5112 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008933/0.6739, allocations: 7.724 MB / 0.5188 GB, free: 97.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.6742, allocations: 0.9387 MB / 0.5197 GB, free: 96.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002052/0.6744, allocations: 43.27 kB / 0.5197 GB, free: 96.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.6746, allocations: 187.4 kB / 0.5199 GB, free: 96.01 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6746, allocations: 7.75 kB / 0.5199 GB, free: 96.01 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0349/0.7095, allocations: 26.26 MB / 0.5456 GB, free: 69.67 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/0.7098, allocations: 213.8 kB / 0.5458 GB, free: 69.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.437/3.147, allocations: 7.938 kB / 0.5458 GB, free: 69.42 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat