Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.TestBrush.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/HanserModelica 2.0.0-master/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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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: translateModel(HanserModelica.Electrical.TestBrush,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.TestBrush") translateModel(HanserModelica.Electrical.TestBrush,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.TestBrush") [: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.00226/0.00226, allocations: 179.3 kB / 7.455 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03764/0.03764, allocations: 8.706 MB / 16.58 MB, free: 440 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 221.4 MB / 240.5 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009785/0.0009786, allocations: 97.7 kB / 293.5 MB, free: 5.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.781e-06/5.971e-06, allocations: 0 / 352.1 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2064, allocations: 52.54 MB / 404.6 MB, free: 26.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08613/0.2926, allocations: 78.11 MB / 482.7 MB, free: 12.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.2928, allocations: 63.97 kB / 482.8 MB, free: 12.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.004939/0.2978, allocations: 1.628 MB / 484.4 MB, free: 10.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.2978, allocations: 1.75 kB / 484.4 MB, free: 10.87 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004199/0.2982, allocations: 378.2 kB / 484.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.2983, allocations: 8.031 kB / 484.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.871e-05/0.2983, allocations: 11.91 kB / 484.8 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.2985, allocations: 175 kB / 485 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.2985, allocations: 4 kB / 485 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.2985, allocations: 8 kB / 485 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.904e-05/0.2987, allocations: 32 kB / 485 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.2988, allocations: 73.59 kB / 485.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.2988, allocations: 0 / 485.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.858e-06/0.2988, allocations: 0 / 485.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2988, allocations: 0 / 485.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000554/0.2994, allocations: 388 kB / 485.5 MB, free: 9.676 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.718e-05/0.2994, allocations: 34.52 kB / 485.5 MB, free: 9.633 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.833e-05/0.2995, allocations: 16.91 kB / 485.5 MB, free: 9.613 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.2995, allocations: 0 / 485.5 MB, free: 9.613 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.2995, allocations: 30.56 kB / 485.6 MB, free: 9.574 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/0.2995, allocations: 0 / 485.6 MB, free: 9.574 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002016/0.2998, allocations: 57.59 kB / 485.6 MB, free: 9.512 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.2998, allocations: 51.41 kB / 485.7 MB, free: 9.449 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.285e-05/0.2999, allocations: 117 kB / 485.8 MB, free: 9.328 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.2999, allocations: 25.7 kB / 485.8 MB, free: 9.297 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.41e-05/0.3, allocations: 104 kB / 485.9 MB, free: 9.191 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.676e-06/0.3, allocations: 7.844 kB / 485.9 MB, free: 9.184 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.158e-06/0.3, allocations: 4 kB / 485.9 MB, free: 9.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3001, allocations: 318.8 kB / 486.2 MB, free: 8.859 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.906e-05/0.3001, allocations: 4 kB / 486.2 MB, free: 8.855 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.674e-05/0.3002, allocations: 30.52 kB / 486.3 MB, free: 8.816 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.499e-05/0.3003, allocations: 15.98 kB / 486.3 MB, free: 8.801 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3003, allocations: 0 / 486.3 MB, free: 8.801 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001232/0.3004, allocations: 69.61 kB / 486.3 MB, free: 8.727 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.3004, allocations: 4 kB / 486.3 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.3004, allocations: 0 / 486.3 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.3004, allocations: 3.906 kB / 486.3 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.3006, allocations: 20.08 kB / 486.4 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.3006, allocations: 4 kB / 486.4 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.094e-05/0.3007, allocations: 11.98 kB / 486.4 MB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.3007, allocations: 0 / 486.4 MB, free: 8.684 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.736e-05/0.3007, allocations: 105 kB / 486.5 MB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.931e-05/0.3008, allocations: 11.91 kB / 486.5 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.202e-05/0.3008, allocations: 3.625 kB / 486.5 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.3008, allocations: 4 kB / 486.5 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3008, allocations: 0 / 486.5 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3008, allocations: 0 / 486.5 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.301, allocations: 154.1 kB / 486.7 MB, free: 8.371 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.301, allocations: 8 kB / 486.7 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.551e-05/0.3011, allocations: 15.98 kB / 486.7 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.3011, allocations: 0 / 486.7 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.3012, allocations: 0 / 486.7 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3012, allocations: 3.938 kB / 486.7 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3012, allocations: 0 / 486.7 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001515/0.3013, allocations: 147.5 kB / 486.8 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.033e-05/0.3014, allocations: 89 kB / 486.9 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.3014, allocations: 0 / 486.9 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.559e-05/0.3015, allocations: 19.91 kB / 486.9 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.3015, allocations: 7.984 kB / 486.9 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-06/0.3016, allocations: 0 / 486.9 MB, free: 8.051 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.899e-05/0.3016, allocations: 95.66 kB / 487 MB, free: 7.957 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002253/0.3018, allocations: 19.84 kB / 487.1 MB, free: 7.938 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001303/0.302, allocations: 99.23 kB / 487.2 MB, free: 7.828 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.911e-05/0.3021, allocations: 27.94 kB / 487.2 MB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.3021, allocations: 0 / 487.2 MB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.48e-05/0.3021, allocations: 12 kB / 487.2 MB, free: 7.789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001715/0.3023, allocations: 0 / 487.2 MB, free: 7.789 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002658/0.3026, allocations: 91.67 kB / 487.3 MB, free: 7.672 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000266/0.3029, allocations: 0.7077 MB / 488 MB, free: 6.938 MB / 362.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3029, allocations: 0 / 488 MB, free: 6.938 MB / 362.7 MB Notification: Performance of Templates: time 0.002431/0.3053, allocations: 0.6146 MB / 488.6 MB, free: 6.324 MB / 362.7 MB make -j1 -f HanserModelica_HanserModelica.Electrical.TestBrush.makefile (rm -f HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.TestBrush.pipe >> ../files/HanserModelica_HanserModelica.Electrical.TestBrush.sim & ./HanserModelica_HanserModelica.Electrical.TestBrush -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.TestBrush.pipe 2>&1)