Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001034/0.001034, allocations: 203 kB / 8.535 MB, free: 1.684 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.153/1.153, allocations: 225.5 MB / 234.4 MB, free: 3.438 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000829/0.000829, allocations: 98.66 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.095/0.09586, allocations: 56.89 MB / 343.2 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08346/0.1793, allocations: 51.48 MB / 394.7 MB, free: 5.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2139/0.3933, allocations: 77.57 MB / 472.3 MB, free: 14.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000164/0.3935, allocations: 68.84 kB / 472.3 MB, free: 14.21 MB / 346.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.01443/0.408, allocations: 6.089 MB / 478.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.408, allocations: 8.562 kB / 478.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.164e-05/0.4081, allocations: 43.72 kB / 478.5 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002442/0.4083, allocations: 250.2 kB / 478.7 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.4084, allocations: 12 kB / 478.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.401e-05/0.4084, allocations: 16 kB / 478.8 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003492/0.4088, allocations: 210.3 kB / 479 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003185/0.4091, allocations: 213.9 kB / 479.2 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.4091, allocations: 3.906 kB / 479.2 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.4092, allocations: 0 / 479.2 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.4092, allocations: 11.98 kB / 479.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.4102, allocations: 0.735 MB / 479.9 MB, free: 9.449 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.4105, allocations: 178.1 kB / 480.1 MB, free: 9.324 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.4107, allocations: 162.7 kB / 480.3 MB, free: 9.227 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.4108, allocations: 19.83 kB / 480.3 MB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.338e-05/0.4108, allocations: 38 kB / 480.3 MB, free: 9.164 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.884e-06/0.4108, allocations: 0 / 480.3 MB, free: 9.164 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.00217/0.413, allocations: 1.465 MB / 481.8 MB, free: 7.895 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.728e-05/0.413, allocations: 60.05 kB / 481.8 MB, free: 7.824 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.4131, allocations: 157.9 kB / 482 MB, free: 7.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.4131, allocations: 25.7 kB / 482 MB, free: 7.648 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.408e-05/0.4132, allocations: 127.7 kB / 482.1 MB, free: 7.527 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.605e-05/0.4133, allocations: 211.7 kB / 482.3 MB, free: 7.344 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.718e-05/0.4133, allocations: 0 / 482.3 MB, free: 7.344 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.936e-05/0.4134, allocations: 340.6 kB / 482.7 MB, free: 7.016 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.4136, allocations: 127.4 kB / 482.8 MB, free: 6.941 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.4137, allocations: 130.5 kB / 482.9 MB, free: 6.867 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.414, allocations: 145.8 kB / 483.1 MB, free: 6.781 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-06/0.414, allocations: 4 kB / 483.1 MB, free: 6.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0005253/0.4145, allocations: 402.6 kB / 483.5 MB, free: 6.477 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.4145, allocations: 11.94 kB / 483.5 MB, free: 6.465 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.4145, allocations: 0 / 483.5 MB, free: 6.465 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.4145, allocations: 0 / 483.5 MB, free: 6.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000495/0.415, allocations: 134.5 kB / 483.6 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.4151, allocations: 8.938 kB / 483.6 MB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.4153, allocations: 15.98 kB / 483.6 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/0.4153, allocations: 17.25 kB / 483.7 MB, free: 6.305 MB / 346.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 7.306e-05/0.4154, allocations: 116.8 kB / 483.8 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.863e-05/0.4155, allocations: 39.53 kB / 483.8 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.678e-05/0.4156, allocations: 42.02 kB / 483.8 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.4156, allocations: 8 kB / 483.9 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4156, allocations: 0.75 kB / 483.9 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4156, allocations: 3.984 kB / 483.9 MB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.4169, allocations: 1.159 MB / 485 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.417, allocations: 8.125 kB / 485 MB, free: 5.098 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005239/0.4175, allocations: 131.6 kB / 485.2 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.4175, allocations: 8 kB / 485.2 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.4175, allocations: 5.375 kB / 485.2 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.4176, allocations: 11.94 kB / 485.2 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.4176, allocations: 4 kB / 485.2 MB, free: 4.945 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007985/0.4184, allocations: 0.9876 MB / 486.2 MB, free: 3.969 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001019/0.4194, allocations: 1.539 MB / 487.7 MB, free: 2.527 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.903e-05/0.4195, allocations: 112.7 kB / 487.8 MB, free: 2.398 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.188e-05/0.4195, allocations: 7.625 kB / 487.8 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.4198, allocations: 23.98 kB / 487.8 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.052e-05/0.4199, allocations: 47.66 kB / 487.9 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/0.4199, allocations: 23.78 kB / 487.9 MB, free: 2.312 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.375e-05/0.42, allocations: 127.1 kB / 488 MB, free: 2.203 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009792/0.421, allocations: 76 kB / 488.1 MB, free: 2.129 MB / 346.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.0001123/0.4211, allocations: 118.9 kB / 488.2 MB, free: 2.004 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004507/0.4215, allocations: 368.6 kB / 488.6 MB, free: 1.758 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4216, allocations: 0 / 488.6 MB, free: 1.758 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002568/0.4218, allocations: 216.7 kB / 488.8 MB, free: 1.602 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.4223, allocations: 51.5 kB / 488.9 MB, free: 1.562 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.4234, allocations: 0.8065 MB / 489.7 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003482/0.4238, allocations: 0.8472 MB / 490.5 MB, free: 15.89 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4238, allocations: 0 / 490.5 MB, free: 15.89 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat