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.001219/0.001218, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.788/1.788, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.001407/0.001407, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3534, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004741/0.3582, allocations: 2.858 MB / 328.2 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001644/0.3598, allocations: 0.7375 MB / 328.9 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001917/0.3601, allocations: 8.375 kB / 328.9 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002333/0.3603, allocations: 44.36 kB / 329 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002305/0.3606, allocations: 100.7 kB / 329.1 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003898/0.361, allocations: 108.8 kB / 329.2 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005885/0.3616, allocations: 399.3 kB / 329.6 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003603/0.3619, allocations: 125.5 kB / 329.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002848/0.3622, allocations: 154.4 kB / 329.8 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002657/0.3625, allocations: 174 kB / 330 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.3626, allocations: 36.31 kB / 330 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.813e-05/0.3627, allocations: 36.72 kB / 330.1 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.3628, allocations: 79.72 kB / 330.2 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002076/0.363, allocations: 174.2 kB / 330.3 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000581/0.3636, allocations: 388.5 kB / 330.7 MB, free: 13.75 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.3636, allocations: 1.094 kB / 330.7 MB, free: 13.75 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3637, allocations: 0 / 330.7 MB, free: 13.75 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.3637, allocations: 0 / 330.7 MB, free: 13.75 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.001637/0.3653, allocations: 0.6814 MB / 331.4 MB, free: 13.15 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.3654, allocations: 14.03 kB / 331.4 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.875e-05/0.3655, allocations: 40.09 kB / 331.4 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004013/0.3659, allocations: 291.9 kB / 331.7 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.3659, allocations: 15.88 kB / 331.7 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.406e-05/0.366, allocations: 28.59 kB / 331.8 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007502/0.3668, allocations: 288.6 kB / 332 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.3668, allocations: 0 / 332 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.442e-05/0.3668, allocations: 14.25 kB / 332.1 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.3668, allocations: 6.031 kB / 332.1 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008754/0.3677, allocations: 280.7 kB / 332.3 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001953/0.3697, allocations: 1.063 MB / 333.4 MB, free: 11.6 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007206/0.3704, allocations: 197.4 kB / 333.6 MB, free: 11.44 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002751/0.3707, allocations: 92.72 kB / 333.7 MB, free: 11.34 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.893e-05/0.3708, allocations: 0 / 333.7 MB, free: 11.34 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005059/0.3713, allocations: 145 kB / 333.8 MB, free: 11.18 MB / 270.1 MB Notification: Performance of pre-optimization done (n=11): time 1.203e-06/0.3713, allocations: 0 / 333.8 MB, free: 11.18 MB / 270.1 MB Notification: Performance of matching and sorting (n=11): time 0.001163/0.3725, allocations: 395.1 kB / 334.2 MB, free: 10.77 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.515e-05/0.3725, allocations: 89.14 kB / 334.3 MB, free: 10.66 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003982/0.3729, allocations: 324.4 kB / 334.6 MB, free: 10.33 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.287e-05/0.373, allocations: 29.7 kB / 334.6 MB, free: 10.3 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/0.3732, allocations: 203.5 kB / 334.8 MB, free: 10.09 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.458e-05/0.3732, allocations: 39.53 kB / 334.9 MB, free: 10.05 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.3733, allocations: 57.84 kB / 334.9 MB, free: 9.992 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.3735, allocations: 334.8 kB / 335.3 MB, free: 9.656 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003328/0.3738, allocations: 105.5 kB / 335.4 MB, free: 9.551 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003873/0.3742, allocations: 202.1 kB / 335.6 MB, free: 9.305 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007054/0.3749, allocations: 307.1 kB / 335.9 MB, free: 8.949 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.375, allocations: 0 / 335.9 MB, free: 8.949 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009185/0.3759, allocations: 399.7 kB / 336.3 MB, free: 8.543 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.617e-05/0.3759, allocations: 33.7 kB / 336.3 MB, free: 8.504 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.376, allocations: 4 kB / 336.3 MB, free: 8.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002033/0.3762, allocations: 28.84 kB / 336.3 MB, free: 8.469 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.3765, allocations: 64 kB / 336.4 MB, free: 8.406 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001216/0.3777, allocations: 1.402 MB / 337.8 MB, free: 6.867 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003629/0.3781, allocations: 59.58 kB / 337.8 MB, free: 6.809 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.3781, allocations: 8 kB / 337.9 MB, free: 6.801 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003612/0.3785, allocations: 188.4 kB / 338 MB, free: 6.613 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003288/0.3788, allocations: 194 kB / 338.2 MB, free: 6.375 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005529/0.3794, allocations: 295.3 kB / 338.5 MB, free: 6.031 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.563e-06/0.3794, allocations: 0 / 338.5 MB, free: 6.031 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007632/0.3801, allocations: 367.3 kB / 338.9 MB, free: 5.656 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/0.3802, allocations: 34.08 kB / 338.9 MB, free: 5.617 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3802, allocations: 4 kB / 338.9 MB, free: 5.613 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001118/0.3803, allocations: 37.3 kB / 338.9 MB, free: 5.574 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002089/0.3805, allocations: 51.91 kB / 339 MB, free: 5.523 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009753/0.3815, allocations: 1.406 MB / 340.4 MB, free: 3.977 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003048/0.3818, allocations: 35.81 kB / 340.4 MB, free: 3.941 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.3819, allocations: 16.09 kB / 340.5 MB, free: 3.926 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001483/0.382, allocations: 200.1 kB / 340.7 MB, free: 3.723 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.333e-05/0.3821, allocations: 23.72 kB / 340.7 MB, free: 3.699 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.832e-05/0.3821, allocations: 25.89 kB / 340.7 MB, free: 3.672 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.3821, allocations: 11.92 kB / 340.7 MB, free: 3.66 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.3822, allocations: 0 / 340.7 MB, free: 3.66 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3822, allocations: 0 / 340.7 MB, free: 3.66 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005285/0.3827, allocations: 455.1 kB / 341.2 MB, free: 3.156 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.3827, allocations: 3.984 kB / 341.2 MB, free: 3.152 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.3829, allocations: 27.97 kB / 341.2 MB, free: 3.125 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.669e-05/0.383, allocations: 24.84 kB / 341.2 MB, free: 3.098 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.383, allocations: 0 / 341.2 MB, free: 3.098 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.3841, allocations: 1.406 MB / 342.6 MB, free: 1.547 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3841, allocations: 0 / 342.6 MB, free: 1.547 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007144/0.3848, allocations: 262.3 kB / 342.9 MB, free: 1.266 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.366e-05/0.3849, allocations: 104.8 kB / 343 MB, free: 1.145 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.845e-05/0.3849, allocations: 3.984 kB / 343 MB, free: 1.141 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.3852, allocations: 23.97 kB / 343 MB, free: 1.117 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.3853, allocations: 15.98 kB / 343 MB, free: 1.102 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.3853, allocations: 4 kB / 343 MB, free: 1.098 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002902/0.3856, allocations: 239 kB / 343.3 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3856, allocations: 0 / 343.3 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005305/0.3862, allocations: 127.7 kB / 343.4 MB, free: 0.7422 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002377/0.3864, allocations: 107.2 kB / 343.5 MB, free: 0.625 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.3879, allocations: 0.6965 MB / 344.2 MB, free: 15.88 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3879, allocations: 0 / 344.2 MB, free: 15.88 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004465/0.3884, allocations: 210.5 kB / 344.4 MB, free: 15.66 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.3887, allocations: 53.88 kB / 344.4 MB, free: 15.61 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009662/0.3897, allocations: 477.9 kB / 344.9 MB, free: 15.12 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.39, allocations: 0.7561 MB / 345.7 MB, free: 14.34 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001581/0.3902, allocations: 38.95 kB / 345.7 MB, free: 14.3 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.408e-05/0.3903, allocations: 31.42 kB / 345.7 MB, free: 14.27 MB / 286.1 MB Notification: Performance of SimCode: time 1.8e-07/0.3903, allocations: 0 / 345.7 MB, free: 14.27 MB / 286.1 MB Notification: Performance of Templates: time 0.007846/0.3981, allocations: 3.622 MB / 349.4 MB, free: 10.64 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)