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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001417/0.001417, allocations: 183 kB / 8.479 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.232/1.232, allocations: 205.2 MB / 214.1 MB, free: 5.449 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008836/0.0008837, allocations: 80.75 kB / 262.1 MB, free: 5.508 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1704/0.1713, allocations: 52.97 MB / 315.1 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/0.2679, allocations: 47.57 MB / 362.6 MB, free: 9.93 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2207/0.4887, allocations: 75.54 MB / 438.2 MB, free: 10.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001735/0.4889, allocations: 62.56 kB / 438.2 MB, free: 10.68 MB / 314.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.01494/0.5038, allocations: 5.953 MB / 444.2 MB, free: 9.836 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.5039, allocations: 12.84 kB / 444.2 MB, free: 9.832 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.273e-05/0.504, allocations: 38.62 kB / 444.2 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000233/0.5042, allocations: 247.1 kB / 444.5 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.5042, allocations: 12.44 kB / 444.5 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.5043, allocations: 19.31 kB / 444.5 MB, free: 9.586 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003559/0.5047, allocations: 209.9 kB / 444.7 MB, free: 9.582 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/0.505, allocations: 210.8 kB / 444.9 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.505, allocations: 7.812 kB / 444.9 MB, free: 9.535 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.5051, allocations: 3.984 kB / 444.9 MB, free: 9.531 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.5051, allocations: 11.5 kB / 444.9 MB, free: 9.527 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001126/0.5062, allocations: 0.7338 MB / 445.7 MB, free: 9.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002641/0.5065, allocations: 179.4 kB / 445.8 MB, free: 9.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.5067, allocations: 162.6 kB / 446 MB, free: 9.219 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.5067, allocations: 8.562 kB / 446 MB, free: 9.215 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/0.5068, allocations: 40.02 kB / 446.1 MB, free: 9.176 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 1.863e-06/0.5068, allocations: 0 / 446.1 MB, free: 9.176 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.00223/0.509, allocations: 1.478 MB / 447.5 MB, free: 8.609 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.243e-05/0.509, allocations: 59.88 kB / 447.6 MB, free: 8.547 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.5092, allocations: 155 kB / 447.7 MB, free: 8.445 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.5092, allocations: 29.52 kB / 447.8 MB, free: 8.414 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.159e-05/0.5092, allocations: 132.5 kB / 447.9 MB, free: 8.309 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.5093, allocations: 206.5 kB / 448.1 MB, free: 8.168 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.782e-05/0.5094, allocations: 0 / 448.1 MB, free: 8.168 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.716e-05/0.5094, allocations: 347.7 kB / 448.4 MB, free: 7.852 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.5096, allocations: 126.7 kB / 448.6 MB, free: 7.848 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.5098, allocations: 132.4 kB / 448.7 MB, free: 7.844 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002116/0.51, allocations: 147.2 kB / 448.8 MB, free: 7.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.51, allocations: 0 / 448.8 MB, free: 7.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0005103/0.5105, allocations: 404.8 kB / 449.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.5106, allocations: 8.25 kB / 449.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.5106, allocations: 0 / 449.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.5106, allocations: 0 / 449.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005018/0.5111, allocations: 136.4 kB / 449.4 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.5111, allocations: 4.359 kB / 449.4 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.5114, allocations: 23.97 kB / 449.4 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.263e-05/0.5114, allocations: 16.17 kB / 449.4 MB, free: 7.754 MB / 314.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 9.289e-05/0.5115, allocations: 106.3 kB / 449.5 MB, free: 7.645 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/0.5116, allocations: 34.94 kB / 449.6 MB, free: 7.625 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.815e-05/0.5117, allocations: 42.78 kB / 449.6 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.5117, allocations: 8.531 kB / 449.6 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.5117, allocations: 4 kB / 449.6 MB, free: 7.609 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.5117, allocations: 3.656 kB / 449.6 MB, free: 7.609 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.5133, allocations: 1.161 MB / 450.8 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.5133, allocations: 7.859 kB / 450.8 MB, free: 7.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005171/0.5138, allocations: 128.2 kB / 450.9 MB, free: 7.062 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.5138, allocations: 11.66 kB / 450.9 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.13e-05/0.5139, allocations: 15.42 kB / 450.9 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.5139, allocations: 11.78 kB / 450.9 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.5139, allocations: 7.781 kB / 451 MB, free: 7.047 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007871/0.5147, allocations: 0.985 MB / 451.9 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001089/0.5158, allocations: 1.538 MB / 453.5 MB, free: 5.336 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.842e-05/0.5159, allocations: 104.3 kB / 453.6 MB, free: 5.227 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.565e-05/0.5159, allocations: 11.67 kB / 453.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.5162, allocations: 27.27 kB / 453.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.485e-05/0.5163, allocations: 41.39 kB / 453.7 MB, free: 5.195 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.854e-05/0.5163, allocations: 21.31 kB / 453.7 MB, free: 5.195 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.689e-05/0.5164, allocations: 130.3 kB / 453.8 MB, free: 5.109 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009484/0.5173, allocations: 77.22 kB / 453.9 MB, free: 5.109 MB / 314.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.0001212/0.5175, allocations: 106.5 kB / 454 MB, free: 5.012 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004718/0.518, allocations: 369.9 kB / 454.3 MB, free: 4.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.518, allocations: 3.875 kB / 454.3 MB, free: 4.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002516/0.5182, allocations: 217 kB / 454.6 MB, free: 4.953 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000457/0.5187, allocations: 61.97 kB / 454.6 MB, free: 4.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.5199, allocations: 0.8116 MB / 455.4 MB, free: 4.363 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003184/0.5202, allocations: 0.845 MB / 456.3 MB, free: 3.602 MB / 314.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5202, allocations: 0 / 456.3 MB, free: 3.602 MB / 314.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