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.006219/0.006219, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001173/0.001173, allocations: 191.3 kB / 16.67 MB, free: 5.93 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.979/1.979, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001544/0.001544, allocations: 47.94 kB / 326.6 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.173, allocations: 46.61 MB / 373.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.006014/0.1791, allocations: 2.838 MB / 376 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.1817, allocations: 0.7563 MB / 376.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003551/0.1821, allocations: 4 kB / 376.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003149/0.1826, allocations: 43.52 kB / 376.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003624/0.1829, allocations: 107.2 kB / 376.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005534/0.1835, allocations: 115.7 kB / 377 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00064/0.1842, allocations: 394.3 kB / 377.4 MB, free: 272 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004177/0.1846, allocations: 139.9 kB / 377.6 MB, free: 132 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4005/0.5851, allocations: 138.2 kB / 377.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005212/0.5857, allocations: 179.8 kB / 377.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.5858, allocations: 37.25 kB / 377.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.858e-05/0.5859, allocations: 39.31 kB / 378 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.586, allocations: 76.98 kB / 378 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002482/0.5863, allocations: 168.9 kB / 378.2 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006651/0.587, allocations: 398 kB / 378.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.587, allocations: 0 / 378.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.587, allocations: 2.062 kB / 378.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.587, allocations: 0.7031 kB / 378.6 MB, free: 9.777 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.001478/0.5885, allocations: 0.6853 MB / 379.3 MB, free: 9.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/0.5886, allocations: 9.938 kB / 379.3 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.5887, allocations: 35.2 kB / 379.3 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005776/0.5893, allocations: 298 kB / 379.6 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.5893, allocations: 21.47 kB / 379.6 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.854e-05/0.5894, allocations: 24.28 kB / 379.7 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007084/0.5901, allocations: 285.3 kB / 379.9 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.5901, allocations: 4.688 kB / 379.9 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/0.5901, allocations: 10.2 kB / 379.9 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.5902, allocations: 7.469 kB / 380 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009056/0.5911, allocations: 286.9 kB / 380.2 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002056/0.5931, allocations: 1.047 MB / 381.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007212/0.5939, allocations: 198.1 kB / 381.5 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002889/0.5942, allocations: 82.69 kB / 381.6 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.5942, allocations: 2.312 kB / 381.6 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004284/0.5946, allocations: 156.2 kB / 381.7 MB, free: 8.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.5947, allocations: 3.938 kB / 381.7 MB, free: 8.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001136/0.5958, allocations: 397.1 kB / 382.1 MB, free: 8.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.5959, allocations: 79.91 kB / 382.2 MB, free: 8.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003925/0.5963, allocations: 330 kB / 382.5 MB, free: 8.062 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.5963, allocations: 27.52 kB / 382.5 MB, free: 8.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.5964, allocations: 199.2 kB / 382.7 MB, free: 7.902 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.361e-05/0.5965, allocations: 47.78 kB / 382.8 MB, free: 7.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.5966, allocations: 51.92 kB / 382.8 MB, free: 7.859 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.126e-05/0.5967, allocations: 335.5 kB / 383.1 MB, free: 7.547 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003065/0.597, allocations: 99.64 kB / 383.2 MB, free: 7.539 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003269/0.5973, allocations: 200.6 kB / 383.4 MB, free: 7.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005883/0.5979, allocations: 314.8 kB / 383.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.5979, allocations: 1.906 kB / 383.8 MB, free: 7.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008481/0.5988, allocations: 394.3 kB / 384.1 MB, free: 7.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.5988, allocations: 34.14 kB / 384.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.5989, allocations: 4 kB / 384.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/0.5991, allocations: 37.42 kB / 384.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.5993, allocations: 62.06 kB / 384.3 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009958/0.6004, allocations: 1.398 MB / 385.7 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.6007, allocations: 56.7 kB / 385.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.6007, allocations: 16.06 kB / 385.7 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003311/0.6011, allocations: 190.7 kB / 385.9 MB, free: 5.555 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003049/0.6014, allocations: 191.1 kB / 386.1 MB, free: 5.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004972/0.6019, allocations: 294 kB / 386.4 MB, free: 5.184 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.565e-06/0.6019, allocations: 1.406 kB / 386.4 MB, free: 5.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007755/0.6027, allocations: 359.4 kB / 386.8 MB, free: 5.035 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.6027, allocations: 38.69 kB / 386.8 MB, free: 5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.6027, allocations: 3.906 kB / 386.8 MB, free: 5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001113/0.6029, allocations: 30.72 kB / 386.8 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.6031, allocations: 55.98 kB / 386.9 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007505/0.6039, allocations: 1.403 MB / 388.3 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.6042, allocations: 39.59 kB / 388.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.6042, allocations: 13.42 kB / 388.3 MB, free: 3.555 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.00012/0.6043, allocations: 198.8 kB / 388.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.612e-05/0.6044, allocations: 29.06 kB / 388.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.754e-05/0.6044, allocations: 30.44 kB / 388.6 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.6044, allocations: 5.031 kB / 388.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.6044, allocations: 1.156 kB / 388.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.6045, allocations: 2.484 kB / 388.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005437/0.605, allocations: 456.8 kB / 389 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.605, allocations: 0 / 389 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.6052, allocations: 34.06 kB / 389.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.444e-05/0.6053, allocations: 22.8 kB / 389.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.6053, allocations: 5.797 kB / 389.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008432/0.6062, allocations: 1.399 MB / 390.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.6062, allocations: 3.094 kB / 390.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006647/0.6068, allocations: 265.2 kB / 390.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.667e-05/0.6069, allocations: 103.3 kB / 390.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/0.607, allocations: 2.484 kB / 390.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.6072, allocations: 20.94 kB / 390.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.6073, allocations: 21.11 kB / 390.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.6073, allocations: 3.172 kB / 390.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003045/0.6076, allocations: 231.6 kB / 391.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6076, allocations: 5.156 kB / 391.1 MB, free: 1.125 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006124/0.6082, allocations: 130 kB / 391.3 MB, free: 1.098 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.0001722/0.6084, allocations: 98.33 kB / 391.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.61, allocations: 0.6954 MB / 392.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.61, allocations: 1.156 kB / 392.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004521/0.6105, allocations: 209.7 kB / 392.3 MB, free: 448 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003852/0.6109, allocations: 57.48 kB / 392.3 MB, free: 428 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.6121, allocations: 487 kB / 392.8 MB, free: 128 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005081/0.6126, allocations: 0.7572 MB / 393.6 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.6127, allocations: 39.89 kB / 393.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.9e-05/0.6128, allocations: 26.19 kB / 393.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.6128, allocations: 0 / 393.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of Templates: time 0.01038/0.6232, allocations: 3.658 MB / 397.3 MB, free: 15.14 MB / 334.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)