Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_cpp_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.001544/0.001549, allocations: 186.2 kB / 16.4 MB, free: 5.75 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.991/1.991, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001152/0.001152, allocations: 93.3 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004035/0.0004034, allocations: 11.98 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4885/0.4889, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2171/0.7061, allocations: 76.36 MB / 451 MB, free: 4.285 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.7064, allocations: 63.97 kB / 451.1 MB, free: 4.223 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02579/0.7322, allocations: 5.727 MB / 456.8 MB, free: 14.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.7323, allocations: 0 / 456.8 MB, free: 14.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.33e-05/0.7323, allocations: 4 kB / 456.8 MB, free: 14.48 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.001392/0.7337, allocations: 0.5854 MB / 457.4 MB, free: 13.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.7338, allocations: 12.03 kB / 457.4 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.845e-05/0.7339, allocations: 62.55 kB / 457.4 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.639e-05/0.734, allocations: 35.62 kB / 457.5 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000398/0.7344, allocations: 260.7 kB / 457.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.571e-05/0.7345, allocations: 24.5 kB / 457.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.621e-05/0.7346, allocations: 32 kB / 457.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000912/0.7355, allocations: 276.8 kB / 458.1 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.888e-05/0.7356, allocations: 3.906 kB / 458.1 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.189e-05/0.7356, allocations: 8 kB / 458.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.7356, allocations: 11.98 kB / 458.1 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.7367, allocations: 278.1 kB / 458.4 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002053/0.7388, allocations: 0.8069 MB / 459.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.7399, allocations: 366.8 kB / 459.5 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-05/0.7399, allocations: 12 kB / 459.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.74, allocations: 34.55 kB / 459.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 2.975e-06/0.74, allocations: 0 / 459.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.007659/0.7477, allocations: 2.043 MB / 461.6 MB, free: 9.391 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.7478, allocations: 59.92 kB / 461.7 MB, free: 9.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002632/0.748, allocations: 174.2 kB / 461.8 MB, free: 9.141 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.012e-05/0.7481, allocations: 37.7 kB / 461.9 MB, free: 9.098 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.7482, allocations: 203.4 kB / 462.1 MB, free: 8.895 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.7485, allocations: 216.8 kB / 462.3 MB, free: 8.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.7485, allocations: 12 kB / 462.3 MB, free: 8.668 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.7487, allocations: 330.8 kB / 462.6 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000593/0.7493, allocations: 169 kB / 462.8 MB, free: 8.172 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005937/0.7499, allocations: 173 kB / 463 MB, free: 8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000641/0.7506, allocations: 186.2 kB / 463.1 MB, free: 7.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.7506, allocations: 0 / 463.1 MB, free: 7.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001509/0.7521, allocations: 490.8 kB / 463.6 MB, free: 7.336 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.7521, allocations: 4 kB / 463.6 MB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.7522, allocations: 4 kB / 463.6 MB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.7522, allocations: 4 kB / 463.6 MB, free: 7.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009252/0.7531, allocations: 127.9 kB / 463.8 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.7532, allocations: 4 kB / 463.8 MB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004118/0.7536, allocations: 35.88 kB / 463.8 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.174e-05/0.7536, allocations: 16 kB / 463.8 MB, free: 7.145 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.0002635/0.7539, allocations: 153.7 kB / 464 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.371e-05/0.754, allocations: 39.53 kB / 464 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000154/0.7542, allocations: 55.31 kB / 464.1 MB, free: 6.891 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.7542, allocations: 8 kB / 464.1 MB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.068e-06/0.7542, allocations: 0 / 464.1 MB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.7542, allocations: 3.984 kB / 464.1 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003258/0.7575, allocations: 1.329 MB / 465.4 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.7576, allocations: 4 kB / 465.4 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009692/0.7585, allocations: 124.4 kB / 465.5 MB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.717e-05/0.7586, allocations: 12 kB / 465.5 MB, free: 5.301 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.614e-05/0.7586, allocations: 23.94 kB / 465.6 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.615e-05/0.7587, allocations: 11.94 kB / 465.6 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/0.7587, allocations: 7.938 kB / 465.6 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002489/0.7612, allocations: 1.108 MB / 466.7 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.7613, allocations: 104.7 kB / 466.8 MB, free: 3.844 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.992e-05/0.7614, allocations: 20 kB / 466.8 MB, free: 3.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004502/0.7619, allocations: 39.97 kB / 466.8 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.762, allocations: 47.84 kB / 466.9 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.795e-05/0.7621, allocations: 20 kB / 466.9 MB, free: 3.719 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002046/0.7623, allocations: 148.2 kB / 467.1 MB, free: 3.574 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7623, allocations: 0 / 467.1 MB, free: 3.574 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006051/0.7629, allocations: 104 kB / 467.2 MB, free: 3.473 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.003271/0.7662, allocations: 2.903 MB / 470.1 MB, free: 432 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001485/0.7677, allocations: 454.5 kB / 470.5 MB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.7678, allocations: 0 / 470.5 MB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007807/0.7686, allocations: 256.7 kB / 470.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007783/0.7694, allocations: 72.03 kB / 470.8 MB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005997/0.7754, allocations: 2.435 MB / 473.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005147/0.7759, allocations: 0.8052 MB / 474.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/0.7763, allocations: 119.4 kB / 474.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of SimCode: time 9.12e-07/0.7763, allocations: 0 / 474.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.471/3.248, allocations: 5.776 MB / 480 MB, free: 6.406 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat