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.00143/0.00143, allocations: 107.3 kB / 15.23 MB, free: 0.6523 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.001954/0.001954, allocations: 194.9 kB / 16.14 MB, free: 6.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.091/2.091, allocations: 205.1 MB / 222 MB, free: 4.75 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.001835/0.001835, allocations: 55.92 kB / 278.1 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4443/0.4461, allocations: 46.62 MB / 324.7 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004/0.4502, allocations: 2.899 MB / 327.6 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.4517, allocations: 0.7411 MB / 328.3 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.452, allocations: 4.25 kB / 328.3 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002005/0.4522, allocations: 40.62 kB / 328.4 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.4524, allocations: 85.5 kB / 328.5 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.4527, allocations: 88.31 kB / 328.5 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000461/0.4532, allocations: 373.1 kB / 328.9 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002877/0.4535, allocations: 109.2 kB / 329 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/0.4537, allocations: 129.9 kB / 329.1 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.4539, allocations: 170 kB / 329.3 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.405e-05/0.454, allocations: 22.44 kB / 329.3 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.135e-05/0.4541, allocations: 23.03 kB / 329.4 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.232e-05/0.4542, allocations: 63.67 kB / 329.4 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002463/0.4544, allocations: 158.2 kB / 329.6 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004636/0.4549, allocations: 388.9 kB / 329.9 MB, free: 13.93 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4549, allocations: 1.156 kB / 330 MB, free: 13.93 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.4549, allocations: 0 / 330 MB, free: 13.93 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.4549, allocations: 0 / 330 MB, free: 13.93 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.001571/0.4565, allocations: 0.6738 MB / 330.6 MB, free: 13.34 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.4566, allocations: 8.906 kB / 330.6 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.4567, allocations: 37.53 kB / 330.7 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004139/0.4571, allocations: 295.9 kB / 331 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.4572, allocations: 18.66 kB / 331 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.504e-05/0.4572, allocations: 29.33 kB / 331 MB, free: 13.01 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007695/0.458, allocations: 288.2 kB / 331.3 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.458, allocations: 0 / 331.3 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.451e-05/0.4581, allocations: 10.53 kB / 331.3 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.4581, allocations: 6.594 kB / 331.3 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008791/0.459, allocations: 291.6 kB / 331.6 MB, free: 12.69 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.4609, allocations: 1.06 MB / 332.6 MB, free: 11.78 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007382/0.4617, allocations: 196.3 kB / 332.8 MB, free: 11.68 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002742/0.462, allocations: 82.8 kB / 332.9 MB, free: 11.63 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.462, allocations: 1.312 kB / 332.9 MB, free: 11.63 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005498/0.4626, allocations: 150.3 kB / 333.1 MB, free: 11.52 MB / 270.1 MB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/0.4626, allocations: 0 / 333.1 MB, free: 11.52 MB / 270.1 MB Notification: Performance of matching and sorting (n=11): time 0.001269/0.4639, allocations: 400.9 kB / 333.5 MB, free: 11.13 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.13e-05/0.4639, allocations: 77.11 kB / 333.5 MB, free: 11.04 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004007/0.4643, allocations: 328.4 kB / 333.9 MB, free: 10.7 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.384e-05/0.4644, allocations: 33.7 kB / 333.9 MB, free: 10.66 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.4646, allocations: 207.5 kB / 334.1 MB, free: 10.46 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.382e-05/0.4646, allocations: 35.58 kB / 334.1 MB, free: 10.42 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.369e-05/0.4647, allocations: 53.84 kB / 334.2 MB, free: 10.36 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.4648, allocations: 338.8 kB / 334.5 MB, free: 10.02 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003144/0.4652, allocations: 101.4 kB / 334.6 MB, free: 9.922 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003627/0.4655, allocations: 194.8 kB / 334.8 MB, free: 9.684 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006557/0.4662, allocations: 323.1 kB / 335.1 MB, free: 9.312 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4662, allocations: 0 / 335.1 MB, free: 9.312 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008956/0.4671, allocations: 379.4 kB / 335.5 MB, free: 8.926 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.152e-05/0.4672, allocations: 41.69 kB / 335.5 MB, free: 8.879 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.4672, allocations: 480 / 335.5 MB, free: 8.879 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002074/0.4674, allocations: 28.84 kB / 335.6 MB, free: 8.848 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00026/0.4677, allocations: 63.89 kB / 335.6 MB, free: 8.785 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/0.4688, allocations: 1.308 MB / 336.9 MB, free: 7.348 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000367/0.4692, allocations: 51.59 kB / 337 MB, free: 7.297 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.4693, allocations: 12 kB / 337 MB, free: 7.285 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00037/0.4696, allocations: 196.4 kB / 337.2 MB, free: 7.09 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003256/0.47, allocations: 186.1 kB / 337.4 MB, free: 6.859 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005619/0.4705, allocations: 303 kB / 337.7 MB, free: 6.508 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.556e-06/0.4706, allocations: 4 kB / 337.7 MB, free: 6.504 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007828/0.4713, allocations: 359.9 kB / 338 MB, free: 6.137 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/0.4714, allocations: 37.7 kB / 338 MB, free: 6.094 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.4714, allocations: 8 kB / 338.1 MB, free: 6.086 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001142/0.4715, allocations: 33.31 kB / 338.1 MB, free: 6.051 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.4717, allocations: 59.83 kB / 338.1 MB, free: 5.992 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009735/0.4727, allocations: 1.304 MB / 339.5 MB, free: 4.559 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003195/0.4731, allocations: 31.83 kB / 339.5 MB, free: 4.527 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/0.4731, allocations: 16 kB / 339.5 MB, free: 4.512 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.0001698/0.4733, allocations: 196.2 kB / 339.7 MB, free: 4.312 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.562e-05/0.4733, allocations: 27.72 kB / 339.7 MB, free: 4.285 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.106e-05/0.4734, allocations: 33.83 kB / 339.7 MB, free: 4.246 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.4734, allocations: 4 kB / 339.8 MB, free: 4.242 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.4734, allocations: 0 / 339.8 MB, free: 4.242 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.4734, allocations: 0 / 339.8 MB, free: 4.242 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005002/0.4739, allocations: 455.1 kB / 340.2 MB, free: 3.738 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.474, allocations: 0 / 340.2 MB, free: 3.738 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001586/0.4741, allocations: 39.94 kB / 340.2 MB, free: 3.699 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001044/0.4742, allocations: 28.83 kB / 340.3 MB, free: 3.668 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.4743, allocations: 3.984 kB / 340.3 MB, free: 3.664 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009359/0.4752, allocations: 1.288 MB / 341.6 MB, free: 2.238 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4752, allocations: 3.938 kB / 341.6 MB, free: 2.234 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006534/0.4759, allocations: 266.4 kB / 341.8 MB, free: 1.949 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.423e-05/0.476, allocations: 100.8 kB / 341.9 MB, free: 1.832 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.137e-05/0.476, allocations: 11.98 kB / 341.9 MB, free: 1.82 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.4762, allocations: 19.97 kB / 342 MB, free: 1.801 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.53e-05/0.4763, allocations: 27.86 kB / 342 MB, free: 1.773 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.4764, allocations: 4 kB / 342 MB, free: 1.77 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002514/0.4766, allocations: 231.1 kB / 342.2 MB, free: 1.547 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4766, allocations: 0 / 342.2 MB, free: 1.547 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006067/0.4772, allocations: 123.7 kB / 342.3 MB, free: 1.426 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.0002148/0.4774, allocations: 103.2 kB / 342.4 MB, free: 1.312 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.479, allocations: 0.6922 MB / 343.1 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.479, allocations: 0 / 343.1 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004297/0.4794, allocations: 211.4 kB / 343.3 MB, free: 360 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003918/0.4798, allocations: 48.75 kB / 343.4 MB, free: 312 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.481, allocations: 0.5664 MB / 343.9 MB, free: 15.71 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.4814, allocations: 0.7561 MB / 344.7 MB, free: 14.93 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001933/0.4816, allocations: 42.94 kB / 344.7 MB, free: 14.89 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.4817, allocations: 23.44 kB / 344.8 MB, free: 14.86 MB / 286.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4817, allocations: 0 / 344.8 MB, free: 14.86 MB / 286.1 MB Notification: Performance of Templates: time 0.007971/0.4897, allocations: 3.376 MB / 348.1 MB, free: 11.49 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)