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.002242/0.002242, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.23/2.23, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001134/0.001134, allocations: 94.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.098e-05/3.115e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09858/0.09866, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3991/0.4978, allocations: 76.27 MB / 445.4 MB, free: 0.543 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.4981, allocations: 62.84 kB / 445.5 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02588/0.524, allocations: 5.727 MB / 451.2 MB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.469e-06/0.5241, allocations: 0 / 451.2 MB, free: 11.69 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.066e-05/0.5241, allocations: 11.88 kB / 451.2 MB, free: 11.68 MB / 330.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.001284/0.5254, allocations: 0.5522 MB / 451.8 MB, free: 11.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.5255, allocations: 12.03 kB / 451.8 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001054/0.5256, allocations: 68.91 kB / 451.9 MB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.5257, allocations: 35.53 kB / 451.9 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003924/0.5261, allocations: 259.6 kB / 452.2 MB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.166e-05/0.5262, allocations: 15.5 kB / 452.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.805e-05/0.5263, allocations: 34.59 kB / 452.2 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006785/0.527, allocations: 244.7 kB / 452.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/0.527, allocations: 3.984 kB / 452.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.19e-05/0.5271, allocations: 13.38 kB / 452.5 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.5271, allocations: 8 kB / 452.5 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006694/0.5278, allocations: 226.5 kB / 452.7 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002082/0.5299, allocations: 0.8029 MB / 453.5 MB, free: 9.68 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007997/0.5307, allocations: 331.7 kB / 453.8 MB, free: 9.469 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004281/0.5312, allocations: 178 kB / 454 MB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.524e-05/0.5313, allocations: 11.98 kB / 454 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.21e-05/0.5313, allocations: 46.23 kB / 454.1 MB, free: 9.297 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.376e-06/0.5313, allocations: 0 / 454.1 MB, free: 9.297 MB / 330.7 MB Notification: Performance of matching and sorting (n=63): time 0.006278/0.5376, allocations: 1.765 MB / 455.8 MB, free: 7.793 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.5377, allocations: 59.97 kB / 455.9 MB, free: 7.723 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002606/0.538, allocations: 172.3 kB / 456.1 MB, free: 7.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.711e-05/0.5381, allocations: 37.2 kB / 456.1 MB, free: 7.535 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.5382, allocations: 198.3 kB / 456.3 MB, free: 7.363 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/0.5385, allocations: 223.1 kB / 456.5 MB, free: 7.168 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.278e-05/0.5385, allocations: 7.812 kB / 456.5 MB, free: 7.168 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.5387, allocations: 334.3 kB / 456.8 MB, free: 6.844 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003855/0.5391, allocations: 138.5 kB / 457 MB, free: 6.762 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003967/0.5395, allocations: 142.8 kB / 457.1 MB, free: 6.672 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004347/0.54, allocations: 161 kB / 457.3 MB, free: 6.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.54, allocations: 0 / 457.3 MB, free: 6.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001083/0.5411, allocations: 427.5 kB / 457.7 MB, free: 6.234 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.5411, allocations: 4 kB / 457.7 MB, free: 6.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.5411, allocations: 4 kB / 457.7 MB, free: 6.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.5412, allocations: 4 kB / 457.7 MB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009665/0.5421, allocations: 119.9 kB / 457.8 MB, free: 6.105 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.99e-05/0.5422, allocations: 7.953 kB / 457.8 MB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004103/0.5426, allocations: 31.97 kB / 457.8 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.281e-05/0.5427, allocations: 19.94 kB / 457.9 MB, free: 6.047 MB / 330.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.0001733/0.5429, allocations: 136.8 kB / 458 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.543, allocations: 31.62 kB / 458 MB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001631/0.5431, allocations: 51.27 kB / 458.1 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/0.5432, allocations: 8 kB / 458.1 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.5432, allocations: 0 / 458.1 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.5432, allocations: 7.938 kB / 458.1 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002961/0.5462, allocations: 1.278 MB / 459.4 MB, free: 4.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.5462, allocations: 4 kB / 459.4 MB, free: 4.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009998/0.5473, allocations: 127.8 kB / 459.5 MB, free: 4.289 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-05/0.5473, allocations: 11.95 kB / 459.5 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.746e-05/0.5474, allocations: 16 kB / 459.5 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.602e-05/0.5474, allocations: 11.94 kB / 459.5 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.5474, allocations: 4 kB / 459.5 MB, free: 4.246 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00192/0.5494, allocations: 1.018 MB / 460.6 MB, free: 3.043 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.5496, allocations: 120.7 kB / 460.7 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.143e-05/0.5497, allocations: 16 kB / 460.7 MB, free: 2.891 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000473/0.5501, allocations: 27.98 kB / 460.7 MB, free: 2.863 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.5503, allocations: 59.83 kB / 460.8 MB, free: 2.805 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.201e-05/0.5504, allocations: 20.09 kB / 460.8 MB, free: 2.785 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001936/0.5506, allocations: 140.2 kB / 460.9 MB, free: 2.648 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5506, allocations: 0 / 460.9 MB, free: 2.648 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005872/0.5512, allocations: 96 kB / 461 MB, free: 2.555 MB / 330.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.002883/0.5541, allocations: 2.827 MB / 463.9 MB, free: 15.58 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.5552, allocations: 383.2 kB / 464.2 MB, free: 15.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.5552, allocations: 4 kB / 464.2 MB, free: 15.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006186/0.5559, allocations: 235.4 kB / 464.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000816/0.5567, allocations: 74.23 kB / 464.5 MB, free: 14.9 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.5594, allocations: 0.9517 MB / 465.5 MB, free: 13.85 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005032/0.56, allocations: 0.8011 MB / 466.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.5603, allocations: 125.8 kB / 466.4 MB, free: 12.9 MB / 346.7 MB Notification: Performance of SimCode: time 1.573e-06/0.5604, allocations: 0 / 466.4 MB, free: 12.9 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.564/3.125, allocations: 5.876 MB / 472.3 MB, free: 7.023 MB / 346.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