Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001854/0.001854, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.57/1.57, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009165/0.0009165, allocations: 93.78 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.505e-05/3.506e-05, allocations: 4 kB / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1384, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4267/0.5652, allocations: 78.3 MB / 480.4 MB, free: 11.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.5655, allocations: 70.94 kB / 480.5 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01468/0.5802, allocations: 5.867 MB / 486.4 MB, free: 6.168 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5802, allocations: 0 / 486.4 MB, free: 6.168 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.69e-05/0.5803, allocations: 4 kB / 486.4 MB, free: 6.164 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.001105/0.5814, allocations: 0.5453 MB / 486.9 MB, free: 5.598 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.136e-05/0.5815, allocations: 10.28 kB / 486.9 MB, free: 5.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001897/0.5817, allocations: 64.73 kB / 487 MB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.5818, allocations: 35.53 kB / 487 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.5821, allocations: 253.4 kB / 487.3 MB, free: 5.234 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/0.5822, allocations: 23.38 kB / 487.3 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.719e-05/0.5823, allocations: 34.53 kB / 487.3 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004631/0.5827, allocations: 249.1 kB / 487.6 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.5828, allocations: 0 / 487.6 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/0.5828, allocations: 12.44 kB / 487.6 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.759e-06/0.5828, allocations: 8 kB / 487.6 MB, free: 5.012 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003517/0.5832, allocations: 228.4 kB / 487.8 MB, free: 4.855 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.5843, allocations: 0.8012 MB / 488.6 MB, free: 4.188 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000448/0.5847, allocations: 341.3 kB / 488.9 MB, free: 3.973 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002343/0.585, allocations: 174.4 kB / 489.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.864e-05/0.585, allocations: 7.312 kB / 489.1 MB, free: 3.859 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.5851, allocations: 41.94 kB / 489.2 MB, free: 3.812 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.613e-06/0.5851, allocations: 0 / 489.2 MB, free: 3.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.003112/0.5882, allocations: 1.766 MB / 490.9 MB, free: 2.078 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.5882, allocations: 59.97 kB / 491 MB, free: 2.008 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.5884, allocations: 181 kB / 491.2 MB, free: 1.828 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.5884, allocations: 31.39 kB / 491.2 MB, free: 1.793 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.087e-05/0.5885, allocations: 145.1 kB / 491.3 MB, free: 1.645 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.811e-05/0.5886, allocations: 216.7 kB / 491.5 MB, free: 1.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.848e-05/0.5886, allocations: 12 kB / 491.6 MB, free: 1.418 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.831e-05/0.5887, allocations: 346.8 kB / 491.9 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.5889, allocations: 137.1 kB / 492 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.5891, allocations: 145 kB / 492.2 MB, free: 0.793 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/0.5893, allocations: 155.3 kB / 492.3 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.5893, allocations: 0 / 492.3 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0005452/0.5899, allocations: 446.7 kB / 492.8 MB, free: 204 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.5899, allocations: 7.984 kB / 492.8 MB, free: 196 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.5899, allocations: 0 / 492.8 MB, free: 196 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.5899, allocations: 4 kB / 492.8 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004404/0.5904, allocations: 127.8 kB / 492.9 MB, free: 64 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.5904, allocations: 7.953 kB / 492.9 MB, free: 56 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.5906, allocations: 27.98 kB / 492.9 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.5906, allocations: 14.11 kB / 492.9 MB, free: 16 kB / 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 () * 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.0001395/0.5908, allocations: 136.9 kB / 493.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.594e-05/0.5909, allocations: 40.14 kB / 493.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.591, allocations: 43.34 kB / 493.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/0.591, allocations: 8 kB / 493.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.591, allocations: 0 / 493.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.591, allocations: 11.88 kB / 493.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.5928, allocations: 1.271 MB / 494.5 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.5928, allocations: 8.125 kB / 494.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000487/0.5933, allocations: 123.8 kB / 494.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.154e-05/0.5933, allocations: 11.95 kB / 494.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/0.5934, allocations: 16 kB / 494.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.231e-05/0.5934, allocations: 15.92 kB / 494.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.5934, allocations: 4 kB / 494.6 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.5946, allocations: 1.026 MB / 495.7 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.797e-05/0.5947, allocations: 108.7 kB / 495.8 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.49e-05/0.5947, allocations: 16 kB / 495.8 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002505/0.595, allocations: 40.02 kB / 495.8 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.609e-05/0.5951, allocations: 51.84 kB / 495.9 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.161e-05/0.5951, allocations: 20 kB / 495.9 MB, free: 12.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001181/0.5952, allocations: 148.3 kB / 496 MB, free: 12.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5953, allocations: 1.219 kB / 496 MB, free: 12.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003732/0.5956, allocations: 96 kB / 496.1 MB, free: 12.52 MB / 362.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 () * 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.001855/0.5975, allocations: 2.811 MB / 498.9 MB, free: 9.566 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000606/0.5981, allocations: 386.9 kB / 499.3 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5981, allocations: 0 / 499.3 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003182/0.5985, allocations: 235.6 kB / 499.5 MB, free: 8.961 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004913/0.599, allocations: 71.66 kB / 499.6 MB, free: 8.895 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.6006, allocations: 0.9205 MB / 0.4888 GB, free: 7.887 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.6009, allocations: 0.8011 MB / 0.4896 GB, free: 7.059 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002005/0.6011, allocations: 43.27 kB / 0.4896 GB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.6013, allocations: 119.4 kB / 0.4897 GB, free: 6.898 MB / 362.7 MB Notification: Performance of SimCode: time 4.2e-07/0.6013, allocations: 4 kB / 0.4897 GB, free: 6.895 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01893/0.6203, allocations: 6.793 MB / 0.4964 GB, free: 352 kB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/0.6205, allocations: 155 kB / 0.4965 GB, free: 124 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.196/2.817, allocations: 0 / 0.4965 GB, free: 124 kB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat