Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.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.Rotational.Examples.Backlash,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 178.3 kB / 8.477 MB, free: 1.871 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.2/1.2, allocations: 205.2 MB / 214.1 MB, free: 5.094 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.0009193/0.0009193, allocations: 79.34 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2132/0.2141, allocations: 52.97 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06782/0.282, allocations: 47.57 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.216/0.498, allocations: 77.22 MB / 439.8 MB, free: 10.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.4982, allocations: 72.2 kB / 439.9 MB, free: 10.62 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.02176/0.52, allocations: 7.976 MB / 447.9 MB, free: 9.258 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.52, allocations: 7.75 kB / 447.9 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.829e-05/0.5201, allocations: 35.16 kB / 447.9 MB, free: 9.242 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.5204, allocations: 255.5 kB / 448.2 MB, free: 9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003381/0.5208, allocations: 129.7 kB / 448.3 MB, free: 8.914 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.366e-05/0.5208, allocations: 15.16 kB / 448.3 MB, free: 8.914 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004382/0.5213, allocations: 255.3 kB / 448.6 MB, free: 8.891 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003962/0.5217, allocations: 281 kB / 448.8 MB, free: 8.777 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.5217, allocations: 11.19 kB / 448.9 MB, free: 8.773 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.5218, allocations: 4 kB / 448.9 MB, free: 8.77 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.5218, allocations: 7.594 kB / 448.9 MB, free: 8.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.5228, allocations: 0.9198 MB / 449.8 MB, free: 8.141 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.5232, allocations: 275.5 kB / 450.1 MB, free: 8.07 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.5234, allocations: 153.6 kB / 450.2 MB, free: 8.035 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.5234, allocations: 3.969 kB / 450.2 MB, free: 8.035 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.674e-05/0.5235, allocations: 42.06 kB / 450.3 MB, free: 7.992 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 1.733e-06/0.5235, allocations: 0 / 450.3 MB, free: 7.992 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.001786/0.5253, allocations: 1.742 MB / 452 MB, free: 6.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.441e-05/0.5253, allocations: 106.5 kB / 452.1 MB, free: 6.445 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.5254, allocations: 163.7 kB / 452.3 MB, free: 6.336 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.5255, allocations: 25.7 kB / 452.3 MB, free: 6.305 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.966e-05/0.5255, allocations: 131.8 kB / 452.4 MB, free: 6.188 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.846e-05/0.5256, allocations: 135.6 kB / 452.5 MB, free: 6.086 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/0.5256, allocations: 3.719 kB / 452.5 MB, free: 6.086 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.252e-05/0.5257, allocations: 336.4 kB / 452.9 MB, free: 5.762 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.5258, allocations: 117 kB / 453 MB, free: 5.758 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.5261, allocations: 166.5 kB / 453.2 MB, free: 5.695 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.5262, allocations: 115.4 kB / 453.3 MB, free: 5.676 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.5262, allocations: 4.656 kB / 453.3 MB, free: 5.672 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004981/0.5267, allocations: 336.4 kB / 453.6 MB, free: 5.594 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.5268, allocations: 13.28 kB / 453.6 MB, free: 5.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.5268, allocations: 0 / 453.6 MB, free: 5.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.5268, allocations: 3.719 kB / 453.6 MB, free: 5.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007319/0.5275, allocations: 185 kB / 453.8 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.5276, allocations: 7.828 kB / 453.8 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002309/0.5278, allocations: 27.27 kB / 453.8 MB, free: 5.523 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.5278, allocations: 11.22 kB / 453.8 MB, free: 5.523 MB / 314.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 7.347e-05/0.5279, allocations: 104.9 kB / 453.9 MB, free: 5.414 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.684e-05/0.528, allocations: 27.09 kB / 454 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.283e-05/0.5281, allocations: 27.67 kB / 454 MB, free: 5.395 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.5281, allocations: 7.875 kB / 454 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.5281, allocations: 3.875 kB / 454 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.5281, allocations: 0 / 454 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001237/0.5293, allocations: 1.131 MB / 455.1 MB, free: 4.629 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.5294, allocations: 3.781 kB / 455.1 MB, free: 4.629 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009257/0.5303, allocations: 220.6 kB / 455.4 MB, free: 4.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.193e-06/0.5303, allocations: 3.688 kB / 455.4 MB, free: 4.566 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.948e-05/0.5303, allocations: 11.3 kB / 455.4 MB, free: 4.562 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.5303, allocations: 7.625 kB / 455.4 MB, free: 4.559 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.5304, allocations: 3.688 kB / 455.4 MB, free: 4.559 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006704/0.531, allocations: 0.7911 MB / 456.2 MB, free: 4.043 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008315/0.5319, allocations: 1.321 MB / 457.5 MB, free: 3.148 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.532, allocations: 132.1 kB / 457.6 MB, free: 3.027 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.507e-05/0.5321, allocations: 0 / 457.6 MB, free: 3.027 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004681/0.5325, allocations: 66.61 kB / 457.7 MB, free: 3.008 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.675e-05/0.5326, allocations: 34.25 kB / 457.7 MB, free: 2.992 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/0.5327, allocations: 22.73 kB / 457.7 MB, free: 2.984 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.903e-05/0.5327, allocations: 127 kB / 457.9 MB, free: 2.902 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001008/0.5337, allocations: 73.62 kB / 457.9 MB, free: 2.898 MB / 314.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.0001277/0.5339, allocations: 106.5 kB / 458 MB, free: 2.801 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003518/0.5342, allocations: 241 kB / 458.3 MB, free: 2.781 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5342, allocations: 0 / 458.3 MB, free: 2.781 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002424/0.5345, allocations: 169 kB / 458.4 MB, free: 2.766 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004952/0.535, allocations: 48.27 kB / 458.5 MB, free: 2.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004513/0.5395, allocations: 1.38 MB / 459.9 MB, free: 1.992 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004493/0.54, allocations: 0.8168 MB / 460.7 MB, free: 17.25 MB / 330.7 MB Notification: Performance of SimCode: time 3.9e-07/0.54, allocations: 0 / 460.7 MB, free: 17.25 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat does not exist to compare? outputFormat=mat