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.01039/0.01039, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.001891/0.00189, allocations: 197.9 kB / 16.68 MB, free: 5.969 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.918/1.918, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.002036/0.002036, allocations: 54.75 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.1849, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00719/0.1922, allocations: 2.836 MB / 376 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002333/0.1946, allocations: 0.7523 MB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003247/0.195, allocations: 4 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002691/0.1953, allocations: 51.5 kB / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002958/0.1957, allocations: 95.19 kB / 376.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004818/0.1961, allocations: 115.8 kB / 377 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005448/0.1967, allocations: 402.3 kB / 377.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003482/0.1971, allocations: 135.9 kB / 377.6 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002372/0.1973, allocations: 147.4 kB / 377.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000265/0.1976, allocations: 179.2 kB / 377.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.528e-05/0.1977, allocations: 36 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.724e-05/0.1977, allocations: 36 kB / 378 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.1978, allocations: 79.69 kB / 378 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001893/0.198, allocations: 171.2 kB / 378.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006749/0.1987, allocations: 398.3 kB / 378.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.644e-05/0.1987, allocations: 3.984 kB / 378.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.953e-06/0.1988, allocations: 0 / 378.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.1988, allocations: 3.938 kB / 378.6 MB, free: 11.86 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.001813/0.2006, allocations: 0.6923 MB / 379.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.2007, allocations: 12.03 kB / 379.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.2008, allocations: 32.75 kB / 379.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006741/0.2015, allocations: 291.8 kB / 379.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.799e-05/0.2015, allocations: 16.94 kB / 379.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.758e-05/0.2015, allocations: 28.36 kB / 379.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007062/0.2023, allocations: 289.1 kB / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.2023, allocations: 0 / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/0.2023, allocations: 8 kB / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.2023, allocations: 8 kB / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008412/0.2032, allocations: 290 kB / 380.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.2053, allocations: 1.052 MB / 381.3 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008533/0.2061, allocations: 198.5 kB / 381.5 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003015/0.2064, allocations: 80.8 kB / 381.6 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.2065, allocations: 0 / 381.6 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004912/0.207, allocations: 156.9 kB / 381.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 2.255e-06/0.207, allocations: 0 / 381.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.00134/0.2083, allocations: 403.4 kB / 382.1 MB, free: 8.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.218e-05/0.2084, allocations: 89.11 kB / 382.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005341/0.209, allocations: 324.5 kB / 382.5 MB, free: 7.664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.209, allocations: 29.7 kB / 382.6 MB, free: 7.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.2092, allocations: 212 kB / 382.8 MB, free: 7.418 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.171e-05/0.2093, allocations: 35.69 kB / 382.8 MB, free: 7.383 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.2094, allocations: 57.89 kB / 382.9 MB, free: 7.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.2096, allocations: 334.8 kB / 383.2 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.21, allocations: 101.5 kB / 383.3 MB, free: 6.883 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004291/0.2104, allocations: 198.1 kB / 383.5 MB, free: 6.641 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006878/0.2111, allocations: 319.1 kB / 383.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.2111, allocations: 4 kB / 383.8 MB, free: 6.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009682/0.2121, allocations: 383.6 kB / 384.2 MB, free: 5.879 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.291e-05/0.2122, allocations: 38.16 kB / 384.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.2122, allocations: 12 kB / 384.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002664/0.2125, allocations: 28.84 kB / 384.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.2128, allocations: 55.89 kB / 384.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/0.2143, allocations: 1.41 MB / 385.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003598/0.2146, allocations: 59.84 kB / 385.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.958e-05/0.2147, allocations: 8 kB / 385.8 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003993/0.2151, allocations: 188.3 kB / 386 MB, free: 3.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003872/0.2155, allocations: 194.4 kB / 386.1 MB, free: 3.691 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005933/0.2161, allocations: 295.1 kB / 386.4 MB, free: 3.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.448e-06/0.2161, allocations: 4 kB / 386.4 MB, free: 3.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0008225/0.2169, allocations: 360.1 kB / 386.8 MB, free: 2.977 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.217, allocations: 37.7 kB / 386.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.217, allocations: 4 kB / 386.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001144/0.2171, allocations: 32.78 kB / 386.9 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002151/0.2173, allocations: 55.89 kB / 386.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.2185, allocations: 1.402 MB / 388.3 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003086/0.2189, allocations: 40.02 kB / 388.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.2189, allocations: 12 kB / 388.4 MB, free: 1.25 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.0002072/0.2191, allocations: 204 kB / 388.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.2192, allocations: 31.81 kB / 388.6 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.783e-05/0.2192, allocations: 21.89 kB / 388.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.2192, allocations: 7.984 kB / 388.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2192, allocations: 0 / 388.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2193, allocations: 4 kB / 388.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000558/0.2198, allocations: 459.2 kB / 389.1 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.2198, allocations: 4 kB / 389.1 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.22, allocations: 27.91 kB / 389.1 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001032/0.2201, allocations: 28.83 kB / 389.1 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.2201, allocations: 4.125 kB / 389.1 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/0.2215, allocations: 1.41 MB / 390.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2215, allocations: 0 / 390.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007001/0.2222, allocations: 262.5 kB / 390.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.56e-05/0.2223, allocations: 108.9 kB / 390.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.2224, allocations: 0 / 390.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.2226, allocations: 23.97 kB / 390.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.2227, allocations: 23.91 kB / 391 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.2227, allocations: 4 kB / 391 MB, free: 14.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003177/0.223, allocations: 235.1 kB / 391.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2231, allocations: 0 / 391.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006087/0.2237, allocations: 127.8 kB / 391.3 MB, free: 14.04 MB / 334.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.0002994/0.224, allocations: 95.25 kB / 391.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.2257, allocations: 0.6968 MB / 392.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.2257, allocations: 0 / 392.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005027/0.2262, allocations: 214.5 kB / 392.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004444/0.2267, allocations: 53.09 kB / 392.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.228, allocations: 488.7 kB / 392.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006413/0.2287, allocations: 0.7561 MB / 393.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002172/0.2289, allocations: 42.95 kB / 393.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.21e-05/0.229, allocations: 19.44 kB / 393.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.229, allocations: 7.938 kB / 393.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of Templates: time 0.01085/0.2399, allocations: 3.658 MB / 397.3 MB, free: 7.898 MB / 334.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)