Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.00137/0.00137, 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.001715/0.001715, allocations: 194.1 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.952/1.952, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.00128/0.00128, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3662/0.3675, allocations: 46.63 MB / 325.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004908/0.3725, allocations: 2.842 MB / 328.2 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001845/0.3744, allocations: 0.7412 MB / 328.9 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002422/0.3746, allocations: 4.531 kB / 328.9 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002253/0.3749, allocations: 53.62 kB / 329 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.3751, allocations: 91.97 kB / 329.1 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003666/0.3755, allocations: 115.9 kB / 329.2 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005082/0.376, allocations: 400.4 kB / 329.6 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003121/0.3763, allocations: 129.2 kB / 329.7 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.3766, allocations: 142 kB / 329.8 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002599/0.3769, allocations: 177.2 kB / 330 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.966e-05/0.3769, allocations: 37.06 kB / 330 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.299e-05/0.377, allocations: 37.69 kB / 330.1 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.963e-05/0.3771, allocations: 83.7 kB / 330.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002096/0.3773, allocations: 168.8 kB / 330.3 MB, free: 14.06 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004395/0.3778, allocations: 389.9 kB / 330.7 MB, free: 13.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3778, allocations: 0 / 330.7 MB, free: 13.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3778, allocations: 0 / 330.7 MB, free: 13.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.3778, allocations: 0.9062 kB / 330.7 MB, free: 13.77 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.00168/0.3795, allocations: 0.6854 MB / 331.4 MB, free: 13.17 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.532e-05/0.3796, allocations: 9.594 kB / 331.4 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.3797, allocations: 36.06 kB / 331.4 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004994/0.3803, allocations: 291.9 kB / 331.7 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.461e-05/0.3803, allocations: 23.75 kB / 331.7 MB, free: 12.85 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.96e-05/0.3804, allocations: 28.83 kB / 331.8 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008806/0.3813, allocations: 292.2 kB / 332 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3813, allocations: 0 / 332 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.3814, allocations: 10.38 kB / 332.1 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.836e-05/0.3814, allocations: 7.094 kB / 332.1 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009849/0.3824, allocations: 283.4 kB / 332.3 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/0.3844, allocations: 1.052 MB / 333.4 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007667/0.3852, allocations: 199.8 kB / 333.6 MB, free: 11.47 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002785/0.3855, allocations: 88.78 kB / 333.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.3855, allocations: 0 / 333.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005498/0.3861, allocations: 149 kB / 333.8 MB, free: 11.22 MB / 270.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.3861, allocations: 0 / 333.8 MB, free: 11.22 MB / 270.1 MB Notification: Performance of matching and sorting (n=11): time 0.001316/0.3874, allocations: 395.1 kB / 334.2 MB, free: 10.8 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.929e-05/0.3875, allocations: 85.09 kB / 334.3 MB, free: 10.7 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003972/0.3879, allocations: 328.8 kB / 334.6 MB, free: 10.37 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.388, allocations: 25.7 kB / 334.6 MB, free: 10.34 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.3882, allocations: 207.5 kB / 334.8 MB, free: 10.13 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.3882, allocations: 35.53 kB / 334.9 MB, free: 10.09 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.3883, allocations: 61.77 kB / 334.9 MB, free: 10.03 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3885, allocations: 334.8 kB / 335.3 MB, free: 9.691 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.3888, allocations: 105.5 kB / 335.4 MB, free: 9.586 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.3892, allocations: 198.1 kB / 335.6 MB, free: 9.344 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007086/0.3899, allocations: 311.1 kB / 335.9 MB, free: 8.984 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3899, allocations: 11.94 kB / 335.9 MB, free: 8.973 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009223/0.3909, allocations: 383.8 kB / 336.2 MB, free: 8.582 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.71e-05/0.3909, allocations: 33.7 kB / 336.3 MB, free: 8.543 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.3909, allocations: 4 kB / 336.3 MB, free: 8.539 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000236/0.3912, allocations: 32.83 kB / 336.3 MB, free: 8.504 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.3914, allocations: 68.02 kB / 336.4 MB, free: 8.438 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.3927, allocations: 1.41 MB / 337.8 MB, free: 6.891 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/0.3931, allocations: 51.59 kB / 337.8 MB, free: 6.84 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.3931, allocations: 15.88 kB / 337.9 MB, free: 6.824 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004008/0.3935, allocations: 192.4 kB / 338 MB, free: 6.633 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000368/0.3939, allocations: 186.1 kB / 338.2 MB, free: 6.402 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005956/0.3945, allocations: 291.2 kB / 338.5 MB, free: 6.062 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.019e-06/0.3945, allocations: 7.984 kB / 338.5 MB, free: 6.055 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007558/0.3953, allocations: 359.4 kB / 338.9 MB, free: 5.688 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.3953, allocations: 37.69 kB / 338.9 MB, free: 5.645 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3953, allocations: 8.453 kB / 338.9 MB, free: 5.637 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.807e-05/0.3954, allocations: 32.84 kB / 338.9 MB, free: 5.602 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.3957, allocations: 55.89 kB / 339 MB, free: 5.547 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009272/0.3966, allocations: 1.398 MB / 340.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002892/0.3969, allocations: 35.95 kB / 340.4 MB, free: 3.973 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.3969, allocations: 16 kB / 340.5 MB, free: 3.957 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.0001488/0.3971, allocations: 204.1 kB / 340.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.139e-05/0.3971, allocations: 23.72 kB / 340.7 MB, free: 3.727 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.386e-05/0.3972, allocations: 29.89 kB / 340.7 MB, free: 3.695 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3972, allocations: 0 / 340.7 MB, free: 3.695 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.3972, allocations: 0 / 340.7 MB, free: 3.695 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.3972, allocations: 4 kB / 340.7 MB, free: 3.691 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000447/0.3977, allocations: 459.1 kB / 341.2 MB, free: 3.184 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3977, allocations: 0 / 341.2 MB, free: 3.184 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.3978, allocations: 31.91 kB / 341.2 MB, free: 3.152 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-05/0.3979, allocations: 28.83 kB / 341.2 MB, free: 3.121 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.885e-05/0.398, allocations: 12.02 kB / 341.2 MB, free: 3.109 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009466/0.3989, allocations: 1.394 MB / 342.6 MB, free: 1.57 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3989, allocations: 0 / 342.6 MB, free: 1.57 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006664/0.3996, allocations: 266.3 kB / 342.9 MB, free: 1.285 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.02e-05/0.3997, allocations: 108.8 kB / 343 MB, free: 1.16 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.06e-05/0.3998, allocations: 4 kB / 343 MB, free: 1.156 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.4, allocations: 23.97 kB / 343 MB, free: 1.133 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.12e-05/0.4001, allocations: 19.92 kB / 343 MB, free: 1.113 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.4001, allocations: 7.984 kB / 343 MB, free: 1.105 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002298/0.4003, allocations: 223.1 kB / 343.3 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4003, allocations: 0 / 343.3 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005192/0.4009, allocations: 135.7 kB / 343.4 MB, free: 0.7578 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.0001418/0.401, allocations: 95.25 kB / 343.5 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.4024, allocations: 0.696 MB / 344.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4025, allocations: 0 / 344.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004431/0.4029, allocations: 214.5 kB / 344.4 MB, free: 15.68 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.4033, allocations: 46 kB / 344.4 MB, free: 15.64 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009925/0.4043, allocations: 478.3 kB / 344.9 MB, free: 15.15 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/0.4047, allocations: 0.7562 MB / 345.7 MB, free: 14.37 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001714/0.4048, allocations: 50.88 kB / 345.7 MB, free: 14.32 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.868e-05/0.4049, allocations: 23.38 kB / 345.7 MB, free: 14.29 MB / 286.1 MB Notification: Performance of SimCode: time 2.81e-07/0.4049, allocations: 0 / 345.7 MB, free: 14.29 MB / 286.1 MB Notification: Performance of Templates: time 0.007467/0.4124, allocations: 3.618 MB / 349.4 MB, free: 10.68 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1)