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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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"}) [: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 4.0.0+maint.om/package.mo): time 0.0009234/0.0009234, allocations: 184 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.051/1.051, allocations: 221.4 MB / 229.9 MB, free: 3.066 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008404/0.0008404, allocations: 94.61 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08758/0.08845, allocations: 55.81 MB / 336.6 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.2551, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07313/0.3282, allocations: 76.77 MB / 463.8 MB, free: 10.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001609/0.3284, allocations: 73.52 kB / 463.8 MB, free: 9.941 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.01514/0.3436, allocations: 6.104 MB / 469.9 MB, free: 3.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.3436, allocations: 8 kB / 469.9 MB, free: 3.812 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.22e-05/0.3437, allocations: 35.53 kB / 470 MB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.344, allocations: 250.4 kB / 470.2 MB, free: 3.492 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.344, allocations: 16 kB / 470.2 MB, free: 3.477 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.192e-05/0.3441, allocations: 19.98 kB / 470.3 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000371/0.3445, allocations: 209.2 kB / 470.5 MB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003515/0.3448, allocations: 208.8 kB / 470.7 MB, free: 3.043 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.3448, allocations: 4 kB / 470.7 MB, free: 3.039 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.3449, allocations: 3.906 kB / 470.7 MB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.3449, allocations: 4 kB / 470.7 MB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.3461, allocations: 0.7452 MB / 471.4 MB, free: 2.246 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.3464, allocations: 177.3 kB / 471.6 MB, free: 2.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000241/0.3466, allocations: 166.4 kB / 471.8 MB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.724e-05/0.3467, allocations: 8 kB / 471.8 MB, free: 1.898 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.3467, allocations: 46.45 kB / 471.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 3.025e-06/0.3467, allocations: 0 / 471.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.002352/0.3491, allocations: 1.468 MB / 473.3 MB, free: 296 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.735e-05/0.3491, allocations: 60.06 kB / 473.3 MB, free: 224 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.3493, allocations: 158.4 kB / 473.5 MB, free: 56 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.3493, allocations: 29.7 kB / 473.5 MB, free: 20 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.107e-05/0.3494, allocations: 136.8 kB / 473.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/0.3495, allocations: 208.8 kB / 473.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.759e-05/0.3495, allocations: 0 / 473.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3496, allocations: 343.7 kB / 474.2 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.3499, allocations: 129.3 kB / 474.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002004/0.3501, allocations: 128.6 kB / 474.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/0.3503, allocations: 147.2 kB / 474.6 MB, free: 14.94 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.3503, allocations: 4 kB / 474.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0005532/0.3509, allocations: 403.6 kB / 475 MB, free: 14.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.478e-06/0.3509, allocations: 4 kB / 475 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3509, allocations: 0 / 475 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3509, allocations: 4 kB / 475 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004931/0.3514, allocations: 131.8 kB / 475.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.3514, allocations: 7.938 kB / 475.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.3516, allocations: 20.92 kB / 475.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.322e-05/0.3517, allocations: 16 kB / 475.2 MB, free: 14.36 MB / 362.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.502e-05/0.3518, allocations: 116.8 kB / 475.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.328e-05/0.3518, allocations: 35.53 kB / 475.3 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.116e-05/0.3519, allocations: 47.33 kB / 475.4 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3519, allocations: 4 kB / 475.4 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.352, allocations: 0 / 475.4 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.352, allocations: 7.984 kB / 475.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001558/0.3535, allocations: 1.164 MB / 476.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.3535, allocations: 7.984 kB / 476.6 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005163/0.3541, allocations: 123.8 kB / 476.7 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/0.3541, allocations: 8 kB / 476.7 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.128e-05/0.3541, allocations: 11.98 kB / 476.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/0.3541, allocations: 11.94 kB / 476.7 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.3541, allocations: 4 kB / 476.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001008/0.3552, allocations: 0.9844 MB / 477.7 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001309/0.3565, allocations: 1.544 MB / 479.2 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.419e-05/0.3566, allocations: 108.7 kB / 479.3 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.332e-05/0.3566, allocations: 8 kB / 479.4 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002781/0.3569, allocations: 19.98 kB / 479.4 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/0.357, allocations: 47.86 kB / 479.4 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-05/0.357, allocations: 23.98 kB / 479.4 MB, free: 9.598 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.555e-05/0.3571, allocations: 124.5 kB / 479.6 MB, free: 9.477 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008959/0.358, allocations: 76 kB / 479.6 MB, free: 9.402 MB / 362.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.000129/0.3582, allocations: 115.1 kB / 479.7 MB, free: 9.277 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005212/0.3587, allocations: 366.8 kB / 480.1 MB, free: 8.918 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3587, allocations: 4 kB / 480.1 MB, free: 8.914 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002961/0.359, allocations: 219.7 kB / 480.3 MB, free: 8.699 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004315/0.3595, allocations: 60.05 kB / 480.4 MB, free: 8.645 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.3607, allocations: 0.7925 MB / 481.2 MB, free: 7.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004773/0.3612, allocations: 0.8472 MB / 482 MB, free: 6.895 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3612, allocations: 0 / 482 MB, free: 6.895 MB / 362.7 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