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.001208/0.001208, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00195/0.001949, allocations: 195.5 kB / 16.25 MB, free: 6.621 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.936/1.937, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.001926/0.001926, allocations: 47.92 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5057/0.5077, allocations: 46.63 MB / 324.9 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00611/0.5139, allocations: 2.896 MB / 327.8 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002904/0.5169, allocations: 0.7334 MB / 328.5 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007771/0.5178, allocations: 5.344 kB / 328.5 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004766/0.5184, allocations: 36.75 kB / 328.5 MB, free: 15 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008812/0.5193, allocations: 88.28 kB / 328.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006637/0.52, allocations: 92.38 kB / 328.7 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001237/0.5213, allocations: 392 kB / 329.1 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004567/0.5218, allocations: 132.9 kB / 329.2 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003989/0.5222, allocations: 150.2 kB / 329.4 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003197/0.5225, allocations: 173.7 kB / 329.5 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.5226, allocations: 36.81 kB / 329.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.5227, allocations: 36.75 kB / 329.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.5229, allocations: 76.61 kB / 329.7 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000257/0.5231, allocations: 176.2 kB / 329.9 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006838/0.5238, allocations: 394.3 kB / 330.2 MB, free: 13.83 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.5238, allocations: 4 kB / 330.2 MB, free: 13.83 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.5238, allocations: 1.344 kB / 330.2 MB, free: 13.83 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.5239, allocations: 0 / 330.2 MB, free: 13.83 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.001716/0.5256, allocations: 0.6765 MB / 330.9 MB, free: 13.24 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.812e-05/0.5257, allocations: 10 kB / 330.9 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.5258, allocations: 36.78 kB / 331 MB, free: 13.22 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005099/0.5263, allocations: 295.6 kB / 331.3 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.218e-05/0.5264, allocations: 15 kB / 331.3 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.617e-05/0.5265, allocations: 25.12 kB / 331.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008516/0.5273, allocations: 288.6 kB / 331.6 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.5273, allocations: 1.5 kB / 331.6 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.844e-05/0.5274, allocations: 13.39 kB / 331.6 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.5274, allocations: 6.125 kB / 331.6 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008842/0.5283, allocations: 288.9 kB / 331.9 MB, free: 12.6 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.5304, allocations: 1.058 MB / 332.9 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007705/0.5311, allocations: 197.3 kB / 333.1 MB, free: 11.58 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/0.5315, allocations: 78.95 kB / 333.2 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.5315, allocations: 1.219 kB / 333.2 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006035/0.5321, allocations: 167.6 kB / 333.4 MB, free: 11.36 MB / 270.1 MB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.5321, allocations: 0 / 333.4 MB, free: 11.36 MB / 270.1 MB Notification: Performance of matching and sorting (n=11): time 0.00124/0.5334, allocations: 391.1 kB / 333.8 MB, free: 10.95 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.5335, allocations: 85.05 kB / 333.8 MB, free: 10.85 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004614/0.534, allocations: 324.4 kB / 334.2 MB, free: 10.52 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.534, allocations: 33.7 kB / 334.2 MB, free: 10.48 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002029/0.5342, allocations: 203.5 kB / 334.4 MB, free: 10.28 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.291e-05/0.5343, allocations: 31.55 kB / 334.4 MB, free: 10.25 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.5344, allocations: 61.88 kB / 334.5 MB, free: 10.18 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.5346, allocations: 334.8 kB / 334.8 MB, free: 9.844 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000333/0.5349, allocations: 105.5 kB / 334.9 MB, free: 9.738 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004202/0.5354, allocations: 198.8 kB / 335.1 MB, free: 9.496 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006707/0.536, allocations: 315.1 kB / 335.4 MB, free: 9.133 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.5361, allocations: 0 / 335.4 MB, free: 9.133 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008379/0.5369, allocations: 387.5 kB / 335.8 MB, free: 8.738 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.325e-05/0.537, allocations: 33.7 kB / 335.8 MB, free: 8.699 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.537, allocations: 3.938 kB / 335.8 MB, free: 8.695 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001927/0.5372, allocations: 33.25 kB / 335.9 MB, free: 8.66 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.5374, allocations: 59.89 kB / 335.9 MB, free: 8.602 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.5388, allocations: 1.402 MB / 337.3 MB, free: 7.062 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003866/0.5392, allocations: 55.69 kB / 337.4 MB, free: 7.008 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.5393, allocations: 19.92 kB / 337.4 MB, free: 6.988 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003537/0.5396, allocations: 184.3 kB / 337.6 MB, free: 6.805 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003451/0.54, allocations: 186.1 kB / 337.8 MB, free: 6.574 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005837/0.5406, allocations: 307.2 kB / 338.1 MB, free: 6.219 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.684e-06/0.5406, allocations: 0 / 338.1 MB, free: 6.219 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.000784/0.5414, allocations: 363.8 kB / 338.4 MB, free: 5.848 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.5414, allocations: 33.7 kB / 338.4 MB, free: 5.809 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.5415, allocations: 4 kB / 338.4 MB, free: 5.805 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001115/0.5416, allocations: 32.83 kB / 338.5 MB, free: 5.77 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.5418, allocations: 55.91 kB / 338.5 MB, free: 5.715 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.5432, allocations: 1.406 MB / 339.9 MB, free: 4.168 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.5436, allocations: 39.81 kB / 340 MB, free: 4.129 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.5436, allocations: 8.375 kB / 340 MB, free: 4.121 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.0002177/0.5438, allocations: 208.1 kB / 340.2 MB, free: 3.91 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.622e-05/0.5439, allocations: 23.72 kB / 340.2 MB, free: 3.887 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.844e-05/0.544, allocations: 25.89 kB / 340.2 MB, free: 3.859 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.544, allocations: 8 kB / 340.2 MB, free: 3.852 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.544, allocations: 4 kB / 340.2 MB, free: 3.848 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.544, allocations: 3.984 kB / 340.2 MB, free: 3.844 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005878/0.5446, allocations: 455.1 kB / 340.7 MB, free: 3.34 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.5446, allocations: 0 / 340.7 MB, free: 3.34 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.5448, allocations: 31.95 kB / 340.7 MB, free: 3.309 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001216/0.5449, allocations: 28.88 kB / 340.8 MB, free: 3.277 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.5449, allocations: 0 / 340.8 MB, free: 3.277 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00171/0.5467, allocations: 1.394 MB / 342.1 MB, free: 1.738 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.5467, allocations: 0 / 342.1 MB, free: 1.738 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006985/0.5474, allocations: 270.3 kB / 342.4 MB, free: 1.449 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.5475, allocations: 100.8 kB / 342.5 MB, free: 1.332 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.162e-05/0.5475, allocations: 4 kB / 342.5 MB, free: 1.328 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.5478, allocations: 27.97 kB / 342.5 MB, free: 1.301 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.211e-05/0.5478, allocations: 19.97 kB / 342.6 MB, free: 1.281 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.5479, allocations: 4 kB / 342.6 MB, free: 1.277 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002904/0.5482, allocations: 231.1 kB / 342.8 MB, free: 1.055 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5482, allocations: 0 / 342.8 MB, free: 1.055 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005917/0.5488, allocations: 123.7 kB / 342.9 MB, free: 0.9336 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.000171/0.5489, allocations: 103.2 kB / 343 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001363/0.5503, allocations: 0.6958 MB / 343.7 MB, free: 76 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.5503, allocations: 8 kB / 343.7 MB, free: 68 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004531/0.5508, allocations: 215.5 kB / 343.9 MB, free: 15.84 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.5512, allocations: 56.73 kB / 344 MB, free: 15.79 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.5523, allocations: 0.5607 MB / 344.5 MB, free: 15.2 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004499/0.5528, allocations: 0.7561 MB / 345.3 MB, free: 14.42 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001762/0.553, allocations: 34.97 kB / 345.3 MB, free: 14.38 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.962e-05/0.5531, allocations: 27.42 kB / 345.4 MB, free: 14.36 MB / 286.1 MB Notification: Performance of SimCode: time 8.02e-07/0.5531, allocations: 0 / 345.4 MB, free: 14.36 MB / 286.1 MB Notification: Performance of Templates: time 0.008058/0.5611, allocations: 3.54 MB / 348.9 MB, free: 10.82 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)