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.001654/0.001654, allocations: 174.7 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.559/1.559, allocations: 221.3 MB / 235.5 MB, free: 2.949 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.0009312/0.0009312, allocations: 85.89 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.381e-05/4.43e-05, allocations: 4 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1326, allocations: 50.43 MB / 394.4 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4155/0.5482, allocations: 77.5 MB / 471.9 MB, free: 9.953 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.5485, allocations: 65.67 kB / 471.9 MB, free: 9.891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01604/0.5646, allocations: 5.871 MB / 477.8 MB, free: 4.004 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5646, allocations: 3.938 kB / 477.8 MB, free: 4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.769e-05/0.5646, allocations: 4 kB / 477.8 MB, free: 3.996 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.0009269/0.5656, allocations: 0.5504 MB / 478.3 MB, free: 3.402 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.5656, allocations: 12.03 kB / 478.4 MB, free: 3.391 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.657e-05/0.5657, allocations: 66.47 kB / 478.4 MB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.961e-05/0.5658, allocations: 35.53 kB / 478.5 MB, free: 3.281 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.5661, allocations: 258.3 kB / 478.7 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.754e-05/0.5662, allocations: 20.56 kB / 478.7 MB, free: 2.969 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.198e-05/0.5662, allocations: 24 kB / 478.8 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004618/0.5667, allocations: 252.9 kB / 479 MB, free: 2.691 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.5667, allocations: 7.906 kB / 479 MB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.661e-05/0.5668, allocations: 8 kB / 479 MB, free: 2.676 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.5668, allocations: 8 kB / 479 MB, free: 2.668 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003939/0.5672, allocations: 230.1 kB / 479.2 MB, free: 2.445 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.5686, allocations: 0.8108 MB / 480.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000517/0.5691, allocations: 333.8 kB / 480.4 MB, free: 1.242 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002632/0.5694, allocations: 176.8 kB / 480.6 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.5694, allocations: 8 kB / 480.6 MB, free: 1.059 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/0.5695, allocations: 38.56 kB / 480.6 MB, free: 1.012 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.833e-06/0.5695, allocations: 0 / 480.6 MB, free: 1.012 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.003567/0.573, allocations: 1.76 MB / 482.4 MB, free: 15.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/0.5731, allocations: 59.97 kB / 482.4 MB, free: 15.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.5733, allocations: 173.7 kB / 482.6 MB, free: 14.92 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/0.5733, allocations: 37.7 kB / 482.6 MB, free: 14.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.5734, allocations: 145.1 kB / 482.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/0.5736, allocations: 216.8 kB / 483 MB, free: 14.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.944e-05/0.5736, allocations: 8 kB / 483 MB, free: 14.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.5738, allocations: 350.8 kB / 483.3 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/0.574, allocations: 141.1 kB / 483.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/0.5743, allocations: 141.1 kB / 483.6 MB, free: 13.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.5745, allocations: 159.2 kB / 483.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.5746, allocations: 4 kB / 483.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0006665/0.5752, allocations: 446.6 kB / 484.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.5753, allocations: 4 kB / 484.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.5753, allocations: 0 / 484.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.5753, allocations: 4 kB / 484.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004784/0.5758, allocations: 131.8 kB / 484.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.5758, allocations: 4 kB / 484.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.576, allocations: 27.98 kB / 484.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.409e-05/0.576, allocations: 20 kB / 484.4 MB, free: 13.09 MB / 362.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.0001244/0.5762, allocations: 136.8 kB / 484.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.233e-05/0.5762, allocations: 31.62 kB / 484.6 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.5764, allocations: 55.27 kB / 484.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.5764, allocations: 4 kB / 484.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.5764, allocations: 0 / 484.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.268e-06/0.5764, allocations: 7.969 kB / 484.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001813/0.5782, allocations: 1.267 MB / 485.9 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.5783, allocations: 8.094 kB / 485.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004912/0.5788, allocations: 127.8 kB / 486 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.757e-06/0.5788, allocations: 8 kB / 486 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/0.5788, allocations: 16 kB / 486 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.044e-05/0.5788, allocations: 11.94 kB / 486.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5788, allocations: 4 kB / 486.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.5801, allocations: 1.03 MB / 487.1 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.5803, allocations: 112.8 kB / 487.2 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.521e-05/0.5803, allocations: 16 kB / 487.2 MB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000267/0.5806, allocations: 35.98 kB / 487.3 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.5807, allocations: 51.83 kB / 487.3 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-05/0.5808, allocations: 20 kB / 487.3 MB, free: 9.832 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001567/0.581, allocations: 144.4 kB / 487.5 MB, free: 9.691 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.581, allocations: 0 / 487.5 MB, free: 9.691 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00041/0.5814, allocations: 96 kB / 487.6 MB, free: 9.598 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.002448/0.5838, allocations: 2.809 MB / 490.4 MB, free: 6.641 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006894/0.5845, allocations: 390.9 kB / 490.7 MB, free: 6.262 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.5845, allocations: 3.938 kB / 490.7 MB, free: 6.258 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003767/0.5849, allocations: 239.7 kB / 491 MB, free: 6.023 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005358/0.5855, allocations: 68.95 kB / 491.1 MB, free: 5.957 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.5872, allocations: 0.9333 MB / 492 MB, free: 4.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.5877, allocations: 0.7972 MB / 492.8 MB, free: 4.105 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001929/0.5879, allocations: 43.27 kB / 492.8 MB, free: 4.062 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/0.5881, allocations: 124.3 kB / 492.9 MB, free: 3.941 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5881, allocations: 0 / 492.9 MB, free: 3.941 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/0.609, allocations: 6.789 MB / 499.7 MB, free: 13.3 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002042/0.6092, allocations: 158.3 kB / 499.9 MB, free: 13.08 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.091/2.7, allocations: 0 / 499.9 MB, free: 13.08 MB / 378.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