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.001047/0.001047, allocations: 94.31 kB / 16.3 MB, free: 5.996 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.0009773/0.0009774, allocations: 183.5 kB / 17.2 MB, free: 5.914 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.38/1.38, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003492/0.0003497, allocations: 8.672 kB / 300.8 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1188, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002561/0.1214, allocations: 2.076 MB / 353.3 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006746/0.1221, allocations: 394.9 kB / 353.7 MB, free: 9.191 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.1222, allocations: 7.938 kB / 353.7 MB, free: 9.184 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.958e-05/0.1223, allocations: 27.77 kB / 353.7 MB, free: 9.156 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000216/0.1225, allocations: 115.7 kB / 353.8 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.1228, allocations: 67.86 kB / 353.9 MB, free: 8.977 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003057/0.1231, allocations: 255.5 kB / 354.2 MB, free: 8.727 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.1233, allocations: 81.67 kB / 354.2 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.1234, allocations: 111.6 kB / 354.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/0.1236, allocations: 147.4 kB / 354.5 MB, free: 8.391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.1237, allocations: 16 kB / 354.5 MB, free: 8.375 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.159e-05/0.1237, allocations: 16 kB / 354.5 MB, free: 8.359 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.991e-05/0.1238, allocations: 55.75 kB / 354.6 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.035e-05/0.1238, allocations: 81.52 kB / 354.7 MB, free: 8.219 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.1241, allocations: 251.3 kB / 354.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1241, allocations: 0 / 354.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1241, allocations: 0 / 354.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.1241, allocations: 0 / 354.9 MB, free: 7.973 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.001082/0.1252, allocations: 0.604 MB / 355.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.1253, allocations: 15.97 kB / 355.5 MB, free: 7.305 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.672e-05/0.1253, allocations: 66.47 kB / 355.6 MB, free: 7.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.756e-05/0.1254, allocations: 35.58 kB / 355.6 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004192/0.1258, allocations: 254.4 kB / 355.9 MB, free: 6.906 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.049e-05/0.1259, allocations: 20.56 kB / 355.9 MB, free: 6.887 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.554e-05/0.1259, allocations: 31.91 kB / 355.9 MB, free: 6.855 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005486/0.1265, allocations: 280.8 kB / 356.2 MB, free: 6.578 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.1265, allocations: 7.984 kB / 356.2 MB, free: 6.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.562e-05/0.1266, allocations: 8 kB / 356.2 MB, free: 6.562 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.1266, allocations: 15.94 kB / 356.2 MB, free: 6.547 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006686/0.1273, allocations: 282.1 kB / 356.5 MB, free: 6.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.1285, allocations: 0.803 MB / 357.3 MB, free: 5.418 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006208/0.1292, allocations: 360.9 kB / 357.7 MB, free: 5.051 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.75e-05/0.1292, allocations: 11.97 kB / 357.7 MB, free: 5.039 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.1293, allocations: 46.5 kB / 357.7 MB, free: 4.984 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.853e-06/0.1293, allocations: 3.938 kB / 357.7 MB, free: 4.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.004117/0.1334, allocations: 2.027 MB / 359.7 MB, free: 2.863 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.1334, allocations: 59.97 kB / 359.8 MB, free: 2.793 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.1337, allocations: 195 kB / 360 MB, free: 2.59 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.249e-05/0.1337, allocations: 33.7 kB / 360 MB, free: 2.551 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.157e-05/0.1338, allocations: 149 kB / 360.2 MB, free: 2.402 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.134, allocations: 220.8 kB / 360.4 MB, free: 2.184 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.238e-05/0.134, allocations: 12 kB / 360.4 MB, free: 2.172 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1341, allocations: 342.8 kB / 360.7 MB, free: 1.828 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003154/0.1345, allocations: 169 kB / 360.9 MB, free: 1.664 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003147/0.1348, allocations: 177 kB / 361.1 MB, free: 1.488 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003865/0.1352, allocations: 182.2 kB / 361.2 MB, free: 1.312 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.1352, allocations: 0 / 361.2 MB, free: 1.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008446/0.136, allocations: 0.4909 MB / 361.7 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1361, allocations: 4 kB / 361.7 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1361, allocations: 0 / 361.7 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1361, allocations: 4 kB / 361.7 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004653/0.1366, allocations: 131.8 kB / 361.9 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.1366, allocations: 4 kB / 361.9 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.1368, allocations: 27.98 kB / 361.9 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.037e-05/0.1368, allocations: 16 kB / 361.9 MB, free: 0.6328 MB / 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.0001736/0.137, allocations: 161.7 kB / 362.1 MB, free: 476 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.42e-05/0.1371, allocations: 43.48 kB / 362.1 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.1372, allocations: 47.33 kB / 362.2 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.904e-06/0.1372, allocations: 12 kB / 362.2 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.1372, allocations: 0 / 362.2 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.1372, allocations: 3.984 kB / 362.2 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001918/0.1392, allocations: 1.325 MB / 363.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/0.1392, allocations: 4.562 kB / 363.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005157/0.1397, allocations: 127.8 kB / 363.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.208e-06/0.1397, allocations: 8 kB / 363.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.102e-05/0.1398, allocations: 23.92 kB / 363.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.471e-06/0.1398, allocations: 8 kB / 363.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.1398, allocations: 7.938 kB / 363.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.1413, allocations: 1.108 MB / 364.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.358e-05/0.1414, allocations: 108.7 kB / 364.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.099e-05/0.1415, allocations: 20.03 kB / 364.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.1418, allocations: 39.92 kB / 365 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.455e-05/0.1418, allocations: 51.84 kB / 365 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-05/0.1419, allocations: 23.98 kB / 365 MB, free: 13.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001098/0.142, allocations: 140.6 kB / 365.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.142, allocations: 0 / 365.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003915/0.1424, allocations: 92 kB / 365.3 MB, free: 12.97 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.002422/0.1448, allocations: 2.902 MB / 368.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008033/0.1457, allocations: 450.6 kB / 368.6 MB, free: 9.477 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1457, allocations: 0 / 368.6 MB, free: 9.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004199/0.1461, allocations: 260.7 kB / 368.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005074/0.1466, allocations: 72.28 kB / 368.9 MB, free: 9.152 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.1501, allocations: 2.406 MB / 371.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.1505, allocations: 0.8052 MB / 372.1 MB, free: 5.812 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001937/0.1507, allocations: 47.25 kB / 372.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/0.1509, allocations: 127.4 kB / 372.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of SimCode: time 2.655e-06/0.1509, allocations: 0 / 372.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01948/0.1704, allocations: 6.731 MB / 379 MB, free: 15.08 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002139/0.1707, allocations: 195.1 kB / 379.2 MB, free: 14.83 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.801/1.971, allocations: 4 kB / 379.2 MB, free: 14.82 MB / 318.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