Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.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.PreLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad",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.0009464/0.0009464, 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.054/1.054, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0008583/0.0008583, allocations: 107.4 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08896/0.08984, allocations: 55.8 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1672/0.257, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07492/0.332, allocations: 78.3 MB / 465.3 MB, free: 8.488 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001891/0.3322, allocations: 67.95 kB / 465.4 MB, free: 8.422 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.0252/0.3574, allocations: 9.954 MB / 475.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3575, allocations: 8 kB / 475.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.523e-05/0.3576, allocations: 55.34 kB / 475.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.3579, allocations: 300.2 kB / 475.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.358, allocations: 19.94 kB / 475.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.453e-05/0.358, allocations: 32 kB / 475.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006057/0.3587, allocations: 349.8 kB / 476.1 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005557/0.3592, allocations: 332.5 kB / 476.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.3593, allocations: 8 kB / 476.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/0.3593, allocations: 0 / 476.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.3593, allocations: 8 kB / 476.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00219/0.3615, allocations: 1.322 MB / 477.7 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004584/0.362, allocations: 299 kB / 478 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000538/0.3625, allocations: 319.3 kB / 478.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.468e-05/0.3626, allocations: 8.656 kB / 478.3 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.3626, allocations: 39.22 kB / 478.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 1.673e-06/0.3626, allocations: 4 kB / 478.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=103): time 0.003604/0.3662, allocations: 2.198 MB / 480.6 MB, free: 8.977 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.3663, allocations: 60.41 kB / 480.6 MB, free: 8.906 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.3664, allocations: 201 kB / 480.8 MB, free: 8.707 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.3665, allocations: 25.7 kB / 480.9 MB, free: 8.676 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.3666, allocations: 169.2 kB / 481 MB, free: 8.504 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.3668, allocations: 338.9 kB / 481.4 MB, free: 8.168 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/0.3668, allocations: 0 / 481.4 MB, free: 8.168 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.367, allocations: 358.8 kB / 481.7 MB, free: 7.809 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003401/0.3673, allocations: 210 kB / 481.9 MB, free: 7.602 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003812/0.3677, allocations: 271.5 kB / 482.2 MB, free: 7.328 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.3681, allocations: 230.9 kB / 482.4 MB, free: 7.105 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3681, allocations: 0 / 482.4 MB, free: 7.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.0009381/0.369, allocations: 0.6324 MB / 483 MB, free: 6.469 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.3691, allocations: 4 kB / 483 MB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3691, allocations: 0 / 483 MB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.3691, allocations: 7.984 kB / 483 MB, free: 6.457 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000843/0.3699, allocations: 223.8 kB / 483.3 MB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.37, allocations: 8 kB / 483.3 MB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.3703, allocations: 47.97 kB / 483.3 MB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.886e-05/0.3704, allocations: 27.98 kB / 483.3 MB, free: 6.156 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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.0001204/0.3705, allocations: 122.5 kB / 483.5 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.902e-05/0.3706, allocations: 59.34 kB / 483.5 MB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.3707, allocations: 57.36 kB / 483.6 MB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.3708, allocations: 8 kB / 483.6 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3708, allocations: 4 kB / 483.6 MB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.3708, allocations: 7.969 kB / 483.6 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002284/0.3731, allocations: 1.735 MB / 485.3 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-06/0.3731, allocations: 16.02 kB / 485.4 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008756/0.374, allocations: 220.6 kB / 485.6 MB, free: 3.824 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.116e-05/0.374, allocations: 8 kB / 485.6 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.151e-05/0.374, allocations: 11.98 kB / 485.6 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.845e-06/0.3741, allocations: 11.94 kB / 485.6 MB, free: 3.793 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.3741, allocations: 4 kB / 485.6 MB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001504/0.3756, allocations: 1.395 MB / 487 MB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00207/0.3777, allocations: 2.078 MB / 489.1 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.813e-05/0.3778, allocations: 136.4 kB / 489.2 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.567e-05/0.3778, allocations: 8 kB / 489.2 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004311/0.3783, allocations: 47.97 kB / 489.3 MB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.893e-05/0.3784, allocations: 68.47 kB / 489.3 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.882e-05/0.3784, allocations: 36 kB / 489.4 MB, free: 15.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001181/0.3786, allocations: 157.2 kB / 489.5 MB, free: 15.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009734/0.3795, allocations: 124 kB / 489.6 MB, free: 15.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * 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.000152/0.3797, allocations: 114.2 kB / 489.8 MB, free: 15.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008626/0.3806, allocations: 0.5932 MB / 490.3 MB, free: 14.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3806, allocations: 0 / 490.3 MB, free: 14.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005237/0.3811, allocations: 387.3 kB / 490.7 MB, free: 14.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005347/0.3817, allocations: 71.36 kB / 490.8 MB, free: 14.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.3836, allocations: 1.208 MB / 492 MB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006116/0.3842, allocations: 0.9655 MB / 493 MB, free: 11.9 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3842, allocations: 0 / 493 MB, free: 11.9 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat does not exist to compare? outputFormat=mat