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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 109 kB / 17.06 MB, free: 5.812 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.001647/0.001647, allocations: 195 kB / 18 MB, free: 4.977 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.896/1.896, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001216/0.001216, allocations: 51.94 kB / 327.9 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1561, allocations: 46.61 MB / 374.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005286/0.1615, allocations: 2.835 MB / 377.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.1634, allocations: 0.7485 MB / 378.1 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002694/0.1637, allocations: 4 kB / 378.1 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002426/0.164, allocations: 55.5 kB / 378.2 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002537/0.1643, allocations: 99.17 kB / 378.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004161/0.1647, allocations: 115.7 kB / 378.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005325/0.1653, allocations: 390.3 kB / 378.7 MB, free: 288 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003704/0.1657, allocations: 139.9 kB / 378.9 MB, free: 148 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000226/0.1659, allocations: 147.5 kB / 379 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3745/0.5404, allocations: 170.4 kB / 379.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.5406, allocations: 40.91 kB / 379.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.639e-05/0.5407, allocations: 37.28 kB / 379.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.814e-05/0.5408, allocations: 76.3 kB / 379.3 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002369/0.5411, allocations: 169.6 kB / 379.5 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006581/0.5417, allocations: 398.3 kB / 379.9 MB, free: 9.941 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.999e-06/0.5418, allocations: 0.8438 kB / 379.9 MB, free: 9.941 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5418, allocations: 2.188 kB / 379.9 MB, free: 9.941 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.5418, allocations: 1.156 kB / 379.9 MB, free: 9.941 MB / 318.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.001561/0.5433, allocations: 0.6801 MB / 380.6 MB, free: 9.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.5434, allocations: 9.625 kB / 380.6 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.451e-05/0.5435, allocations: 34.69 kB / 380.6 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004962/0.544, allocations: 304 kB / 380.9 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.544, allocations: 19.88 kB / 380.9 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.22e-05/0.5441, allocations: 24.23 kB / 381 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007657/0.5449, allocations: 286.3 kB / 381.2 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.5449, allocations: 5.469 kB / 381.2 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.5449, allocations: 14.94 kB / 381.3 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.545, allocations: 8.047 kB / 381.3 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009988/0.546, allocations: 279.6 kB / 381.5 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00227/0.5482, allocations: 1.047 MB / 382.6 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007901/0.549, allocations: 199.3 kB / 382.8 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000333/0.5494, allocations: 84.92 kB / 382.9 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.22e-05/0.5494, allocations: 1.125 kB / 382.9 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004992/0.5499, allocations: 163.2 kB / 383 MB, free: 8.586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 2.204e-06/0.5499, allocations: 0 / 383 MB, free: 8.586 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001429/0.5514, allocations: 393.5 kB / 383.4 MB, free: 8.434 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.5515, allocations: 82.73 kB / 383.5 MB, free: 8.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004928/0.552, allocations: 328.1 kB / 383.8 MB, free: 8.223 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.552, allocations: 27.3 kB / 383.8 MB, free: 8.191 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/0.5522, allocations: 201.8 kB / 384 MB, free: 8.062 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.372e-05/0.5523, allocations: 38.19 kB / 384.1 MB, free: 8.039 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.5524, allocations: 56.28 kB / 384.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.5525, allocations: 339.7 kB / 384.5 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003684/0.5529, allocations: 102.3 kB / 384.6 MB, free: 7.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004151/0.5533, allocations: 193.8 kB / 384.8 MB, free: 7.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000785/0.5541, allocations: 320.7 kB / 385.1 MB, free: 7.398 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.5541, allocations: 0 / 385.1 MB, free: 7.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001099/0.5552, allocations: 396.4 kB / 385.5 MB, free: 7.285 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.023e-05/0.5553, allocations: 35.16 kB / 385.5 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.5553, allocations: 8.203 kB / 385.5 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002666/0.5556, allocations: 32.92 kB / 385.5 MB, free: 7.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/0.5559, allocations: 59.27 kB / 385.6 MB, free: 7.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009739/0.5569, allocations: 1.395 MB / 387 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.5572, allocations: 60.16 kB / 387 MB, free: 5.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.083e-05/0.5573, allocations: 17.31 kB / 387.1 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003728/0.5577, allocations: 186.3 kB / 387.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003401/0.558, allocations: 188.3 kB / 387.4 MB, free: 5.508 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005909/0.5586, allocations: 298.8 kB / 387.7 MB, free: 5.293 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.286e-06/0.5586, allocations: 1.25 kB / 387.7 MB, free: 5.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0008455/0.5595, allocations: 360.1 kB / 388.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.5595, allocations: 33.25 kB / 388.1 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.5595, allocations: 4.5 kB / 388.1 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001042/0.5596, allocations: 35.39 kB / 388.1 MB, free: 5.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.5599, allocations: 55.31 kB / 388.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007751/0.5607, allocations: 1.407 MB / 389.6 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.561, allocations: 34.64 kB / 389.6 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.561, allocations: 10.3 kB / 389.6 MB, free: 3.672 MB / 318.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.0001485/0.5612, allocations: 206.8 kB / 389.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.967e-05/0.5612, allocations: 29.56 kB / 389.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.203e-05/0.5613, allocations: 29.8 kB / 389.9 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.5613, allocations: 1.031 kB / 389.9 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.5613, allocations: 1 kB / 389.9 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.5613, allocations: 1.953 kB / 389.9 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005687/0.5619, allocations: 463.8 kB / 390.4 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.5619, allocations: 0 / 390.4 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/0.5621, allocations: 27.81 kB / 390.4 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.686e-05/0.5622, allocations: 29.94 kB / 390.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.5622, allocations: 1.812 kB / 390.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008082/0.563, allocations: 1.396 MB / 391.8 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.563, allocations: 4.906 kB / 391.8 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006909/0.5637, allocations: 259.4 kB / 392.1 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.091e-05/0.5638, allocations: 103.6 kB / 392.2 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.706e-05/0.5639, allocations: 6.25 kB / 392.2 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.5641, allocations: 24.61 kB / 392.2 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.209e-05/0.5642, allocations: 17.09 kB / 392.2 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.5642, allocations: 3.859 kB / 392.2 MB, free: 1.371 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002657/0.5645, allocations: 235.6 kB / 392.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5645, allocations: 0 / 392.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005735/0.5651, allocations: 129.4 kB / 392.6 MB, free: 1.211 MB / 318.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.0001818/0.5653, allocations: 110.7 kB / 392.7 MB, free: 1.113 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.5669, allocations: 0.6876 MB / 393.4 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.5669, allocations: 0.5 kB / 393.4 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004392/0.5673, allocations: 214.8 kB / 393.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.5677, allocations: 49.06 kB / 393.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.5689, allocations: 487.2 kB / 394.1 MB, free: 240 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.5693, allocations: 0.7569 MB / 394.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001561/0.5694, allocations: 38.3 kB / 394.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.428e-05/0.5695, allocations: 25.72 kB / 394.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.5695, allocations: 0 / 394.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of Templates: time 0.01089/0.5804, allocations: 3.776 MB / 398.7 MB, free: 15.21 MB / 334.1 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)