Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.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.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",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.001058/0.001058, allocations: 181.1 kB / 17.01 MB, free: 5.125 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.603/1.603, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009592/0.0009593, allocations: 96.09 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002935/0.0002937, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2413, allocations: 47.56 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09196/0.3334, allocations: 76.37 MB / 452.3 MB, free: 4.289 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.3336, allocations: 59.97 kB / 452.3 MB, free: 4.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01529/0.3489, allocations: 5.732 MB / 458.1 MB, free: 14.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.349, allocations: 0 / 458.1 MB, free: 14.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.794e-05/0.349, allocations: 12 kB / 458.1 MB, free: 14.47 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0009196/0.3499, allocations: 0.5737 MB / 458.6 MB, free: 13.85 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.35, allocations: 12.03 kB / 458.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.888e-05/0.3501, allocations: 62.53 kB / 458.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.328e-05/0.3501, allocations: 31.62 kB / 458.8 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003105/0.3504, allocations: 264.7 kB / 459 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.3505, allocations: 24.5 kB / 459 MB, free: 13.42 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.777e-05/0.3505, allocations: 28 kB / 459.1 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005479/0.3511, allocations: 280.8 kB / 459.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.3511, allocations: 3.906 kB / 459.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.3512, allocations: 12 kB / 459.4 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.3512, allocations: 8 kB / 459.4 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005472/0.3517, allocations: 282.1 kB / 459.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.353, allocations: 0.803 MB / 460.4 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005784/0.3536, allocations: 369.7 kB / 460.8 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.391e-05/0.3537, allocations: 7.984 kB / 460.8 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.3537, allocations: 38.56 kB / 460.8 MB, free: 11.53 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 2.355e-06/0.3537, allocations: 4 kB / 460.8 MB, free: 11.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.004196/0.3579, allocations: 2.035 MB / 462.9 MB, free: 9.398 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.358, allocations: 63.92 kB / 462.9 MB, free: 9.324 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.3582, allocations: 166.2 kB / 463.1 MB, free: 9.152 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.3582, allocations: 37.64 kB / 463.1 MB, free: 9.109 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.3584, allocations: 153 kB / 463.3 MB, free: 8.953 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/0.3585, allocations: 216.8 kB / 463.5 MB, free: 8.738 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.159e-05/0.3586, allocations: 12 kB / 463.5 MB, free: 8.727 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3587, allocations: 342.8 kB / 463.9 MB, free: 8.383 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003168/0.359, allocations: 165 kB / 464 MB, free: 8.223 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003126/0.3593, allocations: 177 kB / 464.2 MB, free: 8.047 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003438/0.3597, allocations: 182.2 kB / 464.4 MB, free: 7.871 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3597, allocations: 0 / 464.4 MB, free: 7.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008343/0.3606, allocations: 0.4947 MB / 464.9 MB, free: 7.371 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3606, allocations: 4 kB / 464.9 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3606, allocations: 0 / 464.9 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.3606, allocations: 8 kB / 464.9 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005198/0.3611, allocations: 119.9 kB / 465 MB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.3612, allocations: 4 kB / 465 MB, free: 7.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002271/0.3614, allocations: 31.94 kB / 465 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.342e-05/0.3614, allocations: 19.98 kB / 465 MB, free: 7.188 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001904/0.3616, allocations: 161.7 kB / 465.2 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.126e-05/0.3617, allocations: 31.62 kB / 465.2 MB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.3618, allocations: 51.33 kB / 465.3 MB, free: 6.938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.3618, allocations: 8 kB / 465.3 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.3619, allocations: 0 / 465.3 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3619, allocations: 0 / 465.3 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002/0.3639, allocations: 1.329 MB / 466.6 MB, free: 5.488 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.3639, allocations: 4.562 kB / 466.6 MB, free: 5.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000501/0.3644, allocations: 135.8 kB / 466.8 MB, free: 5.352 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/0.3644, allocations: 8 kB / 466.8 MB, free: 5.344 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.818e-05/0.3645, allocations: 19.95 kB / 466.8 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.093e-05/0.3645, allocations: 11.94 kB / 466.8 MB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.3645, allocations: 11.94 kB / 466.8 MB, free: 5.301 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.366, allocations: 1.108 MB / 467.9 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.3661, allocations: 112.8 kB / 468 MB, free: 3.879 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.848e-05/0.3662, allocations: 19.95 kB / 468 MB, free: 3.859 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.3664, allocations: 31.98 kB / 468.1 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.931e-05/0.3665, allocations: 55.83 kB / 468.1 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-05/0.3666, allocations: 20 kB / 468.1 MB, free: 3.754 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00012/0.3667, allocations: 148.2 kB / 468.3 MB, free: 3.609 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3667, allocations: 0 / 468.3 MB, free: 3.609 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004184/0.3671, allocations: 104 kB / 468.4 MB, free: 3.508 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002249/0.3694, allocations: 2.898 MB / 471.3 MB, free: 472 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008397/0.3702, allocations: 454.7 kB / 471.7 MB, free: 16 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3702, allocations: 0 / 471.7 MB, free: 16 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004346/0.3707, allocations: 260 kB / 472 MB, free: 15.76 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005157/0.3712, allocations: 72.59 kB / 472.1 MB, free: 15.69 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003661/0.3749, allocations: 2.394 MB / 474.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.3753, allocations: 0.8013 MB / 475.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002208/0.3756, allocations: 47.27 kB / 475.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001955/0.3758, allocations: 119.4 kB / 475.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of SimCode: time 3.376e-06/0.3758, allocations: 0 / 475.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01944/0.3952, allocations: 6.75 MB / 482.2 MB, free: 5.484 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/0.3955, allocations: 181.7 kB / 482.3 MB, free: 5.242 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.019/2.414, allocations: 8 kB / 482.4 MB, free: 5.234 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat