Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [: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.2+maint.om/package.mo): time 0.002083/0.002083, allocations: 193.9 kB / 8.137 MB, free: 2.078 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.204/1.204, allocations: 194.2 MB / 202.8 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001767/0.001767, allocations: 122.7 kB / 247.7 MB, free: 6.344 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.314e-05/1.315e-05, allocations: 4 kB / 297.6 MB, free: 7.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07389/0.07393, allocations: 44.49 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2113/0.2852, allocations: 74.58 MB / 416.6 MB, free: 20.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.2855, allocations: 76.08 kB / 416.7 MB, free: 20.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01462/0.3001, allocations: 5.336 MB / 422.1 MB, free: 16.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.3002, allocations: 4 kB / 422.1 MB, free: 16.05 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008588/0.301, allocations: 0.5898 MB / 422.7 MB, free: 15.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.3011, allocations: 8.031 kB / 422.7 MB, free: 15.42 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.495e-05/0.3012, allocations: 33.73 kB / 422.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003435/0.3015, allocations: 286.6 kB / 423 MB, free: 15.1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.3016, allocations: 15.19 kB / 423 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.3016, allocations: 20 kB / 423 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002915/0.3019, allocations: 155.7 kB / 423.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003158/0.3022, allocations: 190.7 kB / 423.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3022, allocations: 0 / 423.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.3023, allocations: 0 / 423.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.3023, allocations: 8 kB / 423.4 MB, free: 14.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.3038, allocations: 1.034 MB / 424.4 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002296/0.3041, allocations: 94.28 kB / 424.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.187e-05/0.3042, allocations: 42.09 kB / 424.5 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.3042, allocations: 7.984 kB / 424.5 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001169/0.3043, allocations: 95.05 kB / 424.6 MB, free: 13.69 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.3043, allocations: 0 / 424.6 MB, free: 13.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003155/0.3047, allocations: 132.7 kB / 424.7 MB, free: 13.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.31e-05/0.3047, allocations: 77.11 kB / 424.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002052/0.3049, allocations: 234.1 kB / 425.1 MB, free: 13.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.3049, allocations: 29.64 kB / 425.1 MB, free: 13.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.555e-05/0.305, allocations: 193.7 kB / 425.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.431e-05/0.305, allocations: 34.61 kB / 425.3 MB, free: 13.05 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.131e-05/0.3051, allocations: 0 / 425.3 MB, free: 13.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.884e-05/0.3051, allocations: 333.7 kB / 425.6 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.821e-05/0.3052, allocations: 42.28 kB / 425.7 MB, free: 12.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.3053, allocations: 151 kB / 425.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.3054, allocations: 65.88 kB / 425.9 MB, free: 12.49 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3055, allocations: 4 kB / 425.9 MB, free: 12.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003626/0.3058, allocations: 230.8 kB / 426.1 MB, free: 12.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.3058, allocations: 8 kB / 426.1 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.036e-06/0.3059, allocations: 5.594 kB / 426.1 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001647/0.306, allocations: 32.64 kB / 426.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.3063, allocations: 59.91 kB / 426.2 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008108/0.3071, allocations: 1.254 MB / 427.5 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.3075, allocations: 47.88 kB / 427.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.605e-05/0.3075, allocations: 15.75 kB / 427.5 MB, free: 10.81 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.429e-05/0.3076, allocations: 120.8 kB / 427.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.338e-05/0.3076, allocations: 23.72 kB / 427.7 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.251e-05/0.3077, allocations: 21.84 kB / 427.7 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3077, allocations: 3.984 kB / 427.7 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3077, allocations: 4 kB / 427.7 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3077, allocations: 0 / 427.7 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003384/0.3081, allocations: 399.2 kB / 428.1 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3081, allocations: 0 / 428.1 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/0.3082, allocations: 36 kB / 428.1 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001075/0.3084, allocations: 24.66 kB / 428.2 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.3084, allocations: 0 / 428.2 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006646/0.3091, allocations: 1.258 MB / 429.4 MB, free: 8.891 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.3091, allocations: 0 / 429.4 MB, free: 8.891 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000249/0.3093, allocations: 173 kB / 429.6 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.943e-05/0.3094, allocations: 100.8 kB / 429.7 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.161e-05/0.3094, allocations: 3.844 kB / 429.7 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.3097, allocations: 27.97 kB / 429.7 MB, free: 8.574 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.699e-05/0.3097, allocations: 19.73 kB / 429.7 MB, free: 8.559 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.3098, allocations: 7.984 kB / 429.7 MB, free: 8.551 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001327/0.3099, allocations: 180.5 kB / 429.9 MB, free: 8.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003607/0.3103, allocations: 75.69 kB / 430 MB, free: 8.336 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001219/0.3104, allocations: 95.25 kB / 430.1 MB, free: 8.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004071/0.3108, allocations: 265.7 kB / 430.3 MB, free: 7.996 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3108, allocations: 4.062 kB / 430.3 MB, free: 7.992 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002042/0.311, allocations: 160.4 kB / 430.5 MB, free: 7.848 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.3113, allocations: 31.69 kB / 430.5 MB, free: 7.824 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000611/0.3119, allocations: 280.8 kB / 430.8 MB, free: 7.547 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.3121, allocations: 0.7783 MB / 431.6 MB, free: 6.746 MB / 314.7 MB Notification: Performance of SimCode: time 3.5e-07/0.3121, allocations: 4 kB / 431.6 MB, free: 6.742 MB / 314.7 MB Notification: Performance of Templates: time 0.005396/0.3176, allocations: 2.59 MB / 434.2 MB, free: 4.219 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1)