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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007953/0.0007954, allocations: 89.5 kB / 16.31 MB, free: 5.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008027/0.0008027, allocations: 177.2 kB / 17.2 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 223.2 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003413/0.0003414, allocations: 6.188 kB / 300.9 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.124, allocations: 50.42 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002634/0.1267, allocations: 2.189 MB / 353.5 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006332/0.1274, allocations: 378.7 kB / 353.9 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.1275, allocations: 4 kB / 353.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.1276, allocations: 35.7 kB / 353.9 MB, free: 9.008 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001438/0.1278, allocations: 79.31 kB / 354 MB, free: 8.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.1281, allocations: 67.92 kB / 354.1 MB, free: 8.863 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003077/0.1284, allocations: 346.4 kB / 354.4 MB, free: 8.523 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.1286, allocations: 81.67 kB / 354.5 MB, free: 8.441 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.1287, allocations: 119.5 kB / 354.6 MB, free: 8.324 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/0.1289, allocations: 139.4 kB / 354.7 MB, free: 8.188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.129, allocations: 20 kB / 354.8 MB, free: 8.168 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.19e-05/0.129, allocations: 16 kB / 354.8 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.742e-05/0.1291, allocations: 55.77 kB / 354.8 MB, free: 8.098 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.954e-05/0.1291, allocations: 77.58 kB / 354.9 MB, free: 8.016 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002363/0.1294, allocations: 263.2 kB / 355.2 MB, free: 7.758 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1294, allocations: 0 / 355.2 MB, free: 7.758 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1294, allocations: 0 / 355.2 MB, free: 7.758 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1294, allocations: 0 / 355.2 MB, free: 7.758 MB / 286.1 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.0009514/0.1304, allocations: 0.6001 MB / 355.8 MB, free: 7.109 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1304, allocations: 12.03 kB / 355.8 MB, free: 7.098 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.06e-05/0.1305, allocations: 62.55 kB / 355.8 MB, free: 7.027 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.192e-05/0.1306, allocations: 39.56 kB / 355.9 MB, free: 6.988 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.1309, allocations: 262.3 kB / 356.1 MB, free: 6.691 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.1309, allocations: 20.56 kB / 356.2 MB, free: 6.672 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.822e-05/0.131, allocations: 31.91 kB / 356.2 MB, free: 6.641 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005484/0.1315, allocations: 280.8 kB / 356.5 MB, free: 6.363 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.1316, allocations: 0 / 356.5 MB, free: 6.363 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.661e-05/0.1316, allocations: 12 kB / 356.5 MB, free: 6.352 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.1316, allocations: 11.95 kB / 356.5 MB, free: 6.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005389/0.1322, allocations: 286 kB / 356.8 MB, free: 6.059 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.1333, allocations: 0.7913 MB / 357.6 MB, free: 5.219 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005644/0.1339, allocations: 375.2 kB / 357.9 MB, free: 4.836 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003267/0.1342, allocations: 204.7 kB / 358.1 MB, free: 4.633 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.1343, allocations: 8 kB / 358.1 MB, free: 4.625 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.1343, allocations: 34.56 kB / 358.2 MB, free: 4.582 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.402e-06/0.1343, allocations: 0 / 358.2 MB, free: 4.582 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.003904/0.1382, allocations: 2.038 MB / 360.2 MB, free: 2.453 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.1383, allocations: 55.97 kB / 360.3 MB, free: 2.387 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.1385, allocations: 199 kB / 360.4 MB, free: 2.18 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.1385, allocations: 37.7 kB / 360.5 MB, free: 2.137 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.665e-05/0.1386, allocations: 141 kB / 360.6 MB, free: 1.996 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.1388, allocations: 220.8 kB / 360.8 MB, free: 1.777 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.231e-05/0.1388, allocations: 8 kB / 360.8 MB, free: 1.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.139, allocations: 342.8 kB / 361.2 MB, free: 1.426 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.1393, allocations: 173 kB / 361.4 MB, free: 1.258 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000308/0.1396, allocations: 169 kB / 361.5 MB, free: 1.09 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003228/0.14, allocations: 194.1 kB / 361.7 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.14, allocations: 0 / 361.7 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007906/0.1408, allocations: 0.4947 MB / 362.2 MB, free: 412 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.1408, allocations: 4 kB / 362.2 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1408, allocations: 0 / 362.2 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.1408, allocations: 7.984 kB / 362.2 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004329/0.1413, allocations: 123.8 kB / 362.3 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.1413, allocations: 4 kB / 362.3 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.1415, allocations: 31.98 kB / 362.4 MB, free: 240 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.063e-05/0.1415, allocations: 16 kB / 362.4 MB, free: 224 kB / 286.1 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.0001587/0.1417, allocations: 153.8 kB / 362.5 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.09e-05/0.1417, allocations: 43.47 kB / 362.6 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.1419, allocations: 43.42 kB / 362.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.1419, allocations: 8 kB / 362.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.435e-06/0.1419, allocations: 0 / 362.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.1419, allocations: 7.969 kB / 362.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001825/0.1437, allocations: 1.341 MB / 364 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.1438, allocations: 4 kB / 364 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004541/0.1442, allocations: 127.8 kB / 364.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.218e-06/0.1442, allocations: 4 kB / 364.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.1443, allocations: 23.98 kB / 364.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-06/0.1443, allocations: 7.938 kB / 364.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.1443, allocations: 8.219 kB / 364.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.1455, allocations: 0.9057 MB / 365.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.225e-05/0.1456, allocations: 108.7 kB / 365.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.75e-05/0.1457, allocations: 16 kB / 365.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.1459, allocations: 35.97 kB / 365.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.467e-05/0.146, allocations: 47.84 kB / 365.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-05/0.146, allocations: 20 kB / 365.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001093/0.1461, allocations: 140.6 kB / 365.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1461, allocations: 0 / 365.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003703/0.1465, allocations: 96 kB / 365.5 MB, free: 12.88 MB / 302.1 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.001538/0.1481, allocations: 1.462 MB / 367 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007386/0.1488, allocations: 446.8 kB / 367.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1488, allocations: 3.938 kB / 367.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004/0.1492, allocations: 268.6 kB / 367.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005952/0.1498, allocations: 78.88 kB / 367.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.1532, allocations: 2.413 MB / 370.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.1536, allocations: 0.7935 MB / 371 MB, free: 7.223 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001816/0.1538, allocations: 43.27 kB / 371 MB, free: 7.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.154, allocations: 127.4 kB / 371.1 MB, free: 7.055 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.154, allocations: 0 / 371.1 MB, free: 7.055 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01924/0.1732, allocations: 6.763 MB / 377.9 MB, free: 480 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002036/0.1735, allocations: 198.1 kB / 378.1 MB, free: 224 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/2.026, allocations: 4 kB / 378.1 MB, free: 220 kB / 302.1 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