Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_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.001401/0.001401, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.369/1.369, allocations: 205.2 MB / 219.8 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.0008055/0.0008056, allocations: 90.7 kB / 268 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.754e-05/2.769e-05, allocations: 0 / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08705/0.0871, allocations: 47.57 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3086/0.3958, allocations: 76.26 MB / 446.4 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.3961, allocations: 69.09 kB / 446.4 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01491/0.411, allocations: 5.726 MB / 452.2 MB, free: 12.13 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.557e-06/0.411, allocations: 0 / 452.2 MB, free: 12.13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.916e-05/0.4111, allocations: 7.938 kB / 452.2 MB, free: 12.12 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.0008616/0.4119, allocations: 0.5486 MB / 452.7 MB, free: 11.55 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.412, allocations: 12.03 kB / 452.7 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.276e-05/0.4121, allocations: 68.7 kB / 452.8 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.178e-05/0.4121, allocations: 39.53 kB / 452.8 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.4124, allocations: 256.2 kB / 453.1 MB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.507e-05/0.4125, allocations: 27.62 kB / 453.1 MB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.707e-05/0.4125, allocations: 27.16 kB / 453.1 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004232/0.413, allocations: 247 kB / 453.4 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.413, allocations: 8 kB / 453.4 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.413, allocations: 10.12 kB / 453.4 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.413, allocations: 8 kB / 453.4 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003646/0.4134, allocations: 224.9 kB / 453.6 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.4147, allocations: 0.8035 MB / 454.4 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004534/0.4151, allocations: 345.6 kB / 454.8 MB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.4154, allocations: 170.8 kB / 454.9 MB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.4154, allocations: 8 kB / 455 MB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.4154, allocations: 37.88 kB / 455 MB, free: 9.742 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 1.874e-06/0.4155, allocations: 0 / 455 MB, free: 9.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=63): time 0.003309/0.4188, allocations: 1.768 MB / 456.8 MB, free: 7.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.4188, allocations: 59.97 kB / 456.8 MB, free: 7.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.419, allocations: 173.9 kB / 457 MB, free: 7.664 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.419, allocations: 37.7 kB / 457 MB, free: 7.621 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.895e-05/0.4191, allocations: 141.1 kB / 457.2 MB, free: 7.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.4193, allocations: 216.8 kB / 457.4 MB, free: 7.266 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.865e-05/0.4193, allocations: 12 kB / 457.4 MB, free: 7.254 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.4194, allocations: 346.8 kB / 457.7 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/0.4196, allocations: 137.1 kB / 457.9 MB, free: 6.773 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.4199, allocations: 145.1 kB / 458 MB, free: 6.629 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002477/0.4201, allocations: 155.2 kB / 458.1 MB, free: 6.477 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.4201, allocations: 0 / 458.1 MB, free: 6.477 MB / 330.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.000616/0.4207, allocations: 438.7 kB / 458.6 MB, free: 6.043 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.4208, allocations: 4 kB / 458.6 MB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.4208, allocations: 0 / 458.6 MB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.4208, allocations: 11.94 kB / 458.6 MB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004764/0.4213, allocations: 123.9 kB / 458.7 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-05/0.4213, allocations: 7.953 kB / 458.7 MB, free: 5.898 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002333/0.4215, allocations: 27.98 kB / 458.7 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.783e-05/0.4216, allocations: 16 kB / 458.8 MB, free: 5.855 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.0001099/0.4217, allocations: 136.8 kB / 458.9 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.179e-05/0.4218, allocations: 31.62 kB / 458.9 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/0.4219, allocations: 59.27 kB / 459 MB, free: 5.625 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.4219, allocations: 4 kB / 459 MB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.4219, allocations: 0 / 459 MB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.422, allocations: 11.88 kB / 459 MB, free: 5.609 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001766/0.4237, allocations: 1.271 MB / 460.3 MB, free: 4.227 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.4237, allocations: 4 kB / 460.3 MB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004934/0.4242, allocations: 127.8 kB / 460.4 MB, free: 4.098 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.092e-05/0.4243, allocations: 11.95 kB / 460.4 MB, free: 4.086 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.579e-05/0.4243, allocations: 16 kB / 460.4 MB, free: 4.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.156e-06/0.4243, allocations: 8 kB / 460.4 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.4243, allocations: 7.938 kB / 460.4 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.4255, allocations: 1.026 MB / 461.5 MB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.781e-05/0.4256, allocations: 116.7 kB / 461.6 MB, free: 2.711 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.796e-05/0.4256, allocations: 20 kB / 461.6 MB, free: 2.691 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002598/0.4259, allocations: 27.98 kB / 461.6 MB, free: 2.664 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.148e-05/0.426, allocations: 55.83 kB / 461.7 MB, free: 2.609 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.074e-05/0.426, allocations: 28 kB / 461.7 MB, free: 2.582 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001206/0.4262, allocations: 148.2 kB / 461.9 MB, free: 2.438 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.4262, allocations: 0 / 461.9 MB, free: 2.438 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003786/0.4265, allocations: 100 kB / 462 MB, free: 2.34 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.001835/0.4284, allocations: 2.807 MB / 464.8 MB, free: 15.38 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000615/0.429, allocations: 387.3 kB / 465.1 MB, free: 15.01 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.429, allocations: 0 / 465.1 MB, free: 15.01 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003617/0.4294, allocations: 235.4 kB / 465.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004816/0.4299, allocations: 71.27 kB / 465.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.4315, allocations: 0.9227 MB / 466.4 MB, free: 13.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003759/0.4319, allocations: 0.8011 MB / 467.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.4321, allocations: 51.25 kB / 467.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001812/0.4323, allocations: 115.4 kB / 467.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4323, allocations: 0 / 467.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02136/0.4537, allocations: 6.806 MB / 474.1 MB, free: 5.891 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/0.454, allocations: 149.6 kB / 474.3 MB, free: 5.672 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.999/2.453, allocations: 3.938 kB / 474.3 MB, free: 5.668 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat