Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.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.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",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.0009522/0.0009522, allocations: 182.8 kB / 8.134 MB, free: 2.195 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.045/1.045, allocations: 221.4 MB / 229.9 MB, free: 2.992 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.0008588/0.000859, allocations: 93.22 kB / 280.8 MB, free: 1.168 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09231/0.09319, allocations: 55.82 MB / 336.6 MB, free: 9.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.2645, allocations: 50.4 MB / 387 MB, free: 37.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07834/0.3428, allocations: 78.11 MB / 465.1 MB, free: 8.574 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001783/0.343, allocations: 67.91 kB / 465.2 MB, free: 8.508 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.02286/0.3659, allocations: 8.109 MB / 473.3 MB, free: 396 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.366, allocations: 8 kB / 473.3 MB, free: 388 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.061e-05/0.3661, allocations: 31.62 kB / 473.3 MB, free: 356 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.3664, allocations: 262.4 kB / 473.6 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004076/0.3668, allocations: 131.8 kB / 473.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.26e-05/0.3669, allocations: 12 kB / 473.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004967/0.3674, allocations: 258.9 kB / 474 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004495/0.3679, allocations: 278.3 kB / 474.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.3679, allocations: 3.906 kB / 474.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.3679, allocations: 0 / 474.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.368, allocations: 8 kB / 474.3 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.3692, allocations: 0.9183 MB / 475.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004198/0.3696, allocations: 269.2 kB / 475.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.3699, allocations: 146.6 kB / 475.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.3699, allocations: 4 kB / 475.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.3699, allocations: 42.55 kB / 475.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 1.392e-06/0.3699, allocations: 0.9375 kB / 475.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.002194/0.3721, allocations: 1.748 MB / 477.4 MB, free: 11.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.3722, allocations: 106.8 kB / 477.5 MB, free: 11.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.3724, allocations: 170 kB / 477.7 MB, free: 11.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.3724, allocations: 26.36 kB / 477.7 MB, free: 11.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.615e-05/0.3725, allocations: 140.5 kB / 477.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.208e-05/0.3726, allocations: 138 kB / 477.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.245e-05/0.3726, allocations: 0 / 477.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.3727, allocations: 334.8 kB / 478.3 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.3729, allocations: 112.9 kB / 478.4 MB, free: 10.83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002403/0.3732, allocations: 168.6 kB / 478.6 MB, free: 10.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001895/0.3734, allocations: 113.1 kB / 478.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.3734, allocations: 0 / 478.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005586/0.3739, allocations: 337.3 kB / 479 MB, free: 10.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.374, allocations: 8 kB / 479 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.371e-06/0.374, allocations: 0 / 479 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.374, allocations: 7.906 kB / 479 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007563/0.3747, allocations: 179.9 kB / 479.2 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.3748, allocations: 4 kB / 479.2 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.375, allocations: 27.97 kB / 479.2 MB, free: 9.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.375, allocations: 8 kB / 479.2 MB, free: 9.977 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.238e-05/0.3751, allocations: 123.5 kB / 479.3 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.3752, allocations: 23.72 kB / 479.4 MB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.081e-05/0.3753, allocations: 29.45 kB / 479.4 MB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3753, allocations: 4 kB / 479.4 MB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.3753, allocations: 3.906 kB / 479.4 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.3753, allocations: 4 kB / 479.4 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.3768, allocations: 1.13 MB / 480.5 MB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.3768, allocations: 7.906 kB / 480.5 MB, free: 8.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009403/0.3777, allocations: 227.9 kB / 480.8 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.243e-06/0.3778, allocations: 4 kB / 480.8 MB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.115e-05/0.3778, allocations: 7.984 kB / 480.8 MB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3778, allocations: 4 kB / 480.8 MB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3778, allocations: 0 / 480.8 MB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008594/0.3787, allocations: 0.8065 MB / 481.6 MB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001107/0.3798, allocations: 1.31 MB / 482.9 MB, free: 6.035 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.3799, allocations: 132.7 kB / 483 MB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.13e-05/0.38, allocations: 7.984 kB / 483 MB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004601/0.3805, allocations: 63.95 kB / 483.1 MB, free: 5.816 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.451e-05/0.3806, allocations: 31.94 kB / 483.1 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.797e-05/0.3806, allocations: 16 kB / 483.1 MB, free: 5.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.438e-05/0.3807, allocations: 131.6 kB / 483.3 MB, free: 5.641 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001042/0.3817, allocations: 71.91 kB / 483.3 MB, free: 5.57 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (elastoBacklash2.phi_rel,elastoBacklash2.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.0001394/0.3819, allocations: 110.4 kB / 483.5 MB, free: 5.457 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003951/0.3823, allocations: 244.7 kB / 483.7 MB, free: 5.219 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3823, allocations: 0 / 483.7 MB, free: 5.219 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002778/0.3826, allocations: 173.6 kB / 483.9 MB, free: 5.051 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004769/0.3831, allocations: 44.03 kB / 483.9 MB, free: 5.008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004577/0.3877, allocations: 1.372 MB / 485.3 MB, free: 3.578 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000458/0.3881, allocations: 0.8217 MB / 486.1 MB, free: 2.734 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3881, allocations: 0 / 486.1 MB, free: 2.734 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat does not exist to compare? outputFormat=mat