Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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.1_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.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008313/0.0008312, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009093/0.0009097, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.712/1.712, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00046/0.00046, allocations: 8 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2516, allocations: 47.59 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002719/0.2544, allocations: 2.419 MB / 328.9 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.2558, allocations: 0.6999 MB / 329.6 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.256, allocations: 5.594 kB / 329.6 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.2561, allocations: 39.88 kB / 329.7 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.2563, allocations: 73.92 kB / 329.7 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.2566, allocations: 79.08 kB / 329.8 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004391/0.2571, allocations: 354.1 kB / 330.2 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002379/0.2573, allocations: 95.39 kB / 330.2 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.2575, allocations: 123.7 kB / 330.4 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002234/0.2578, allocations: 153.1 kB / 330.5 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.411e-05/0.2578, allocations: 22.03 kB / 330.5 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.156e-05/0.2579, allocations: 18.78 kB / 330.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.26e-05/0.258, allocations: 51.92 kB / 330.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.135e-05/0.258, allocations: 83.89 kB / 330.7 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.2584, allocations: 294 kB / 331 MB, free: 13.96 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2584, allocations: 5.094 kB / 331 MB, free: 13.96 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2584, allocations: 0 / 331 MB, free: 13.96 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2584, allocations: 0 / 331 MB, free: 13.96 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001404/0.2598, allocations: 0.6557 MB / 331.6 MB, free: 13.39 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.2599, allocations: 8.562 kB / 331.6 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.176e-05/0.26, allocations: 32.56 kB / 331.7 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004665/0.2604, allocations: 291.2 kB / 332 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/0.2605, allocations: 21.52 kB / 332 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.818e-05/0.2605, allocations: 25 kB / 332 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007581/0.2613, allocations: 295.8 kB / 332.3 MB, free: 12.9 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.2613, allocations: 0 / 332.3 MB, free: 12.9 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.39e-05/0.2614, allocations: 14.2 kB / 332.3 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.2614, allocations: 10.53 kB / 332.3 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000851/0.2623, allocations: 315 kB / 332.6 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.2641, allocations: 1.074 MB / 333.7 MB, free: 11.85 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007339/0.2648, allocations: 242.8 kB / 333.9 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002864/0.2651, allocations: 97.3 kB / 334 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.2651, allocations: 1.031 kB / 334 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005141/0.2657, allocations: 173.2 kB / 334.2 MB, free: 11.54 MB / 270.1 MB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.2657, allocations: 0 / 334.2 MB, free: 11.54 MB / 270.1 MB Notification: Performance of matching and sorting (n=11): time 0.001232/0.2669, allocations: 447 kB / 334.6 MB, free: 11.08 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.208e-05/0.267, allocations: 89.14 kB / 334.7 MB, free: 10.97 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004041/0.2674, allocations: 320.4 kB / 335 MB, free: 10.65 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.947e-05/0.2675, allocations: 33.7 kB / 335.1 MB, free: 10.61 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.2676, allocations: 199.6 kB / 335.3 MB, free: 10.41 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.602e-05/0.2677, allocations: 35.53 kB / 335.3 MB, free: 10.38 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.587e-05/0.2677, allocations: 8 kB / 335.3 MB, free: 10.37 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.2679, allocations: 334.8 kB / 335.6 MB, free: 10.04 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003348/0.2682, allocations: 112.2 kB / 335.7 MB, free: 9.926 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000363/0.2686, allocations: 218.8 kB / 336 MB, free: 9.664 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003184/0.2689, allocations: 157.6 kB / 336.1 MB, free: 9.504 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2689, allocations: 0 / 336.1 MB, free: 9.504 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008466/0.2698, allocations: 419.7 kB / 336.5 MB, free: 9.078 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001788/0.27, allocations: 223.7 kB / 336.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.27, allocations: 4 kB / 336.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002462/0.2702, allocations: 28.83 kB / 336.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002688/0.2705, allocations: 71.89 kB / 336.8 MB, free: 8.695 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/0.2718, allocations: 1.311 MB / 338.2 MB, free: 7.254 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/0.2722, allocations: 55.66 kB / 338.2 MB, free: 7.199 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.405e-05/0.2722, allocations: 16 kB / 338.2 MB, free: 7.184 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.707e-06/0.2722, allocations: 4 kB / 338.2 MB, free: 7.18 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007624/0.273, allocations: 350.4 kB / 338.6 MB, free: 6.828 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.273, allocations: 4 kB / 338.6 MB, free: 6.824 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.383e-05/0.2731, allocations: 25.02 kB / 338.6 MB, free: 6.797 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002151/0.2733, allocations: 59.89 kB / 338.7 MB, free: 6.738 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/0.2745, allocations: 1.296 MB / 340 MB, free: 5.309 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002964/0.2748, allocations: 39.83 kB / 340 MB, free: 5.27 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.2748, allocations: 12.36 kB / 340 MB, free: 5.258 MB / 270.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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 0.0002562/0.2751, allocations: 229.1 kB / 340.2 MB, free: 5.023 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.558e-05/0.2751, allocations: 31.58 kB / 340.3 MB, free: 4.992 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.809e-05/0.2752, allocations: 33.77 kB / 340.3 MB, free: 4.957 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.2752, allocations: 7.938 kB / 340.3 MB, free: 4.949 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2752, allocations: 0 / 340.3 MB, free: 4.949 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.2752, allocations: 0 / 340.3 MB, free: 4.949 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006129/0.2759, allocations: 455.2 kB / 340.7 MB, free: 4.445 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.2759, allocations: 4.031 kB / 340.7 MB, free: 4.441 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.276, allocations: 35.97 kB / 340.8 MB, free: 4.406 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000121/0.2762, allocations: 28.83 kB / 340.8 MB, free: 4.375 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.2762, allocations: 3.938 kB / 340.8 MB, free: 4.371 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009785/0.2772, allocations: 1.3 MB / 342.1 MB, free: 2.938 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2772, allocations: 160 / 342.1 MB, free: 2.938 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006496/0.2778, allocations: 294.3 kB / 342.4 MB, free: 2.625 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.469e-05/0.2779, allocations: 116.7 kB / 342.5 MB, free: 2.492 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.739e-05/0.278, allocations: 4 kB / 342.5 MB, free: 2.488 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.2782, allocations: 27.97 kB / 342.5 MB, free: 2.461 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.461e-05/0.2783, allocations: 19.97 kB / 342.6 MB, free: 2.441 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.2783, allocations: 4 kB / 342.6 MB, free: 2.438 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000238/0.2785, allocations: 231 kB / 342.8 MB, free: 2.215 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2785, allocations: 7.938 kB / 342.8 MB, free: 2.207 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005974/0.2791, allocations: 123.8 kB / 342.9 MB, free: 2.086 MB / 270.1 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0001528/0.2793, allocations: 103.2 kB / 343 MB, free: 1.977 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.2808, allocations: 0.7312 MB / 343.8 MB, free: 1.195 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.2808, allocations: 4 kB / 343.8 MB, free: 1.191 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004324/0.2812, allocations: 231.3 kB / 344 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.2816, allocations: 40.81 kB / 344 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.2827, allocations: 0.5579 MB / 344.6 MB, free: 336 kB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.283, allocations: 0.7561 MB / 345.3 MB, free: 15.54 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001701/0.2832, allocations: 38.95 kB / 345.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.943e-05/0.2833, allocations: 27.44 kB / 345.4 MB, free: 15.48 MB / 286.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2833, allocations: 3.938 kB / 345.4 MB, free: 15.47 MB / 286.1 MB Notification: Performance of Templates: time 0.007231/0.2905, allocations: 3.247 MB / 348.7 MB, free: 12.23 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1)