Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.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.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",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.00152/0.00152, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.528/1.528, allocations: 221.5 MB / 230.3 MB, free: 7.492 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000951/0.0009508, allocations: 107 kB / 281.2 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.271e-05/3.296e-05, allocations: 4 kB / 337.1 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1402, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4073/0.5475, allocations: 76.84 MB / 464.4 MB, free: 1.855 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.5479, allocations: 63.97 kB / 464.5 MB, free: 1.793 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01713/0.565, allocations: 5.828 MB / 470.3 MB, free: 11.95 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5651, allocations: 0 / 470.3 MB, free: 11.95 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.5651, allocations: 4 kB / 470.3 MB, free: 11.95 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.0009026/0.566, allocations: 0.5583 MB / 470.8 MB, free: 11.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.5661, allocations: 8.031 kB / 470.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.996e-05/0.5662, allocations: 43.53 kB / 470.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003146/0.5665, allocations: 247.2 kB / 471.1 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.5665, allocations: 16 kB / 471.2 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.5666, allocations: 19.98 kB / 471.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000395/0.567, allocations: 205.1 kB / 471.4 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003813/0.5674, allocations: 211.7 kB / 471.6 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.885e-05/0.5674, allocations: 3.906 kB / 471.6 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.293e-05/0.5674, allocations: 0 / 471.6 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.5674, allocations: 8 kB / 471.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.5687, allocations: 0.7555 MB / 472.3 MB, free: 9.758 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004718/0.5692, allocations: 315.2 kB / 472.7 MB, free: 9.434 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000251/0.5695, allocations: 172.7 kB / 472.8 MB, free: 9.262 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.909e-05/0.5695, allocations: 4 kB / 472.8 MB, free: 9.258 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.5696, allocations: 42.48 kB / 472.9 MB, free: 9.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.774e-06/0.5696, allocations: 4 kB / 472.9 MB, free: 9.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.002654/0.5722, allocations: 1.46 MB / 474.3 MB, free: 7.656 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.5723, allocations: 59.97 kB / 474.4 MB, free: 7.586 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.5725, allocations: 158.5 kB / 474.5 MB, free: 7.422 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.5725, allocations: 25.7 kB / 474.6 MB, free: 7.391 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.5726, allocations: 144.9 kB / 474.7 MB, free: 7.246 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/0.5728, allocations: 212.8 kB / 474.9 MB, free: 7.035 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.925e-05/0.5728, allocations: 4 kB / 474.9 MB, free: 7.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.573, allocations: 342.8 kB / 475.3 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.5732, allocations: 125.1 kB / 475.4 MB, free: 6.562 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.5734, allocations: 131.9 kB / 475.5 MB, free: 6.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.5737, allocations: 146.1 kB / 475.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5737, allocations: 0 / 475.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0005974/0.5743, allocations: 406.6 kB / 476.1 MB, free: 5.891 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.5743, allocations: 4 kB / 476.1 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.5743, allocations: 0 / 476.1 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.5744, allocations: 7.938 kB / 476.1 MB, free: 5.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000484/0.5749, allocations: 127.8 kB / 476.2 MB, free: 5.754 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.5749, allocations: 4 kB / 476.2 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.5751, allocations: 15.98 kB / 476.2 MB, free: 5.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.429e-05/0.5751, allocations: 19.98 kB / 476.2 MB, free: 5.715 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 () * 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.0001215/0.5752, allocations: 111 kB / 476.3 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006072/0.5759, allocations: 386.5 kB / 476.7 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.96e-05/0.5759, allocations: 35.62 kB / 476.7 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.5761, allocations: 39.95 kB / 476.8 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.5761, allocations: 4 kB / 476.8 MB, free: 5.137 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.5761, allocations: 0 / 476.8 MB, free: 5.137 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.5761, allocations: 4 kB / 476.8 MB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001681/0.5778, allocations: 1.162 MB / 478 MB, free: 3.875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.5778, allocations: 4 kB / 478 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005052/0.5783, allocations: 127.8 kB / 478.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.096e-05/0.5783, allocations: 8 kB / 478.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.5784, allocations: 12 kB / 478.1 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.034e-05/0.5784, allocations: 15.88 kB / 478.1 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.5784, allocations: 8 kB / 478.1 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.5796, allocations: 0.9751 MB / 479.1 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.093e-05/0.5797, allocations: 112.7 kB / 479.2 MB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.461e-05/0.5798, allocations: 12 kB / 479.2 MB, free: 2.406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.5801, allocations: 19.98 kB / 479.2 MB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.7e-05/0.5802, allocations: 51.89 kB / 479.3 MB, free: 2.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.5802, allocations: 23.94 kB / 479.3 MB, free: 2.312 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000108/0.5803, allocations: 124.5 kB / 479.4 MB, free: 2.191 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5803, allocations: 0 / 479.4 MB, free: 2.191 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003964/0.5807, allocations: 80 kB / 479.5 MB, free: 2.113 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 () * 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.002006/0.5827, allocations: 2.762 MB / 482.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005669/0.5833, allocations: 361.7 kB / 482.6 MB, free: 14.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5833, allocations: 0 / 482.6 MB, free: 14.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003092/0.5836, allocations: 211.8 kB / 482.8 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/0.5842, allocations: 60.38 kB / 482.9 MB, free: 14.58 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.5858, allocations: 0.8574 MB / 483.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004074/0.5862, allocations: 0.7969 MB / 484.6 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002072/0.5865, allocations: 47.25 kB / 484.6 MB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000236/0.5867, allocations: 119.4 kB / 484.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5867, allocations: 0 / 484.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03055/0.6173, allocations: 6.321 MB / 491 MB, free: 6.375 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002261/0.6176, allocations: 141 kB / 491.2 MB, free: 6.184 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.246/2.864, allocations: 0 / 491.2 MB, free: 6.184 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat