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.008924/0.008924, allocations: 104.5 kB / 15.74 MB, free: 6.441 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.001477/0.001477, allocations: 190.2 kB / 16.67 MB, free: 6.355 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.748/1.748, allocations: 205.1 MB / 222.5 MB, free: 4.477 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.002069/0.002069, allocations: 50.95 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1775, allocations: 46.62 MB / 373.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.006279/0.1839, allocations: 2.847 MB / 376 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002041/0.186, allocations: 0.7446 MB / 376.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002484/0.1862, allocations: 7.938 kB / 376.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003025/0.1866, allocations: 51.5 kB / 376.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003001/0.1869, allocations: 103.1 kB / 376.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004459/0.1874, allocations: 107.8 kB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005822/0.1879, allocations: 398.3 kB / 377.4 MB, free: 13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003818/0.1883, allocations: 135.9 kB / 377.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000243/0.1886, allocations: 147.4 kB / 377.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002608/0.1889, allocations: 187.2 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.918e-05/0.1889, allocations: 36 kB / 377.9 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.429e-05/0.189, allocations: 36 kB / 378 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.1891, allocations: 79.69 kB / 378 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002294/0.1894, allocations: 167.2 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005955/0.19, allocations: 390.6 kB / 378.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.898e-06/0.19, allocations: 0 / 378.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.831e-06/0.19, allocations: 0 / 378.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.19, allocations: 3.938 kB / 378.6 MB, free: 11.84 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.00173/0.1918, allocations: 0.677 MB / 379.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.295e-05/0.1918, allocations: 16.02 kB / 379.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.192, allocations: 36.56 kB / 379.3 MB, free: 11.06 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006111/0.1926, allocations: 287.6 kB / 379.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.1926, allocations: 20.94 kB / 379.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.046e-05/0.1927, allocations: 28.31 kB / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007707/0.1935, allocations: 289.1 kB / 379.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.1935, allocations: 4 kB / 379.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.085e-05/0.1935, allocations: 15.98 kB / 380 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.1935, allocations: 4 kB / 380 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008442/0.1944, allocations: 282 kB / 380.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.1964, allocations: 1.06 MB / 381.3 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007538/0.1972, allocations: 198.5 kB / 381.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.1975, allocations: 80.8 kB / 381.6 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.1976, allocations: 0 / 381.6 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000439/0.198, allocations: 157 kB / 381.7 MB, free: 8.496 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.198, allocations: 0 / 381.7 MB, free: 8.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001339/0.1994, allocations: 395.4 kB / 382.1 MB, free: 8.082 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/0.1995, allocations: 85.11 kB / 382.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004/0.1999, allocations: 328.4 kB / 382.5 MB, free: 7.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.1999, allocations: 25.8 kB / 382.5 MB, free: 7.621 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000214/0.2001, allocations: 207.5 kB / 382.7 MB, free: 7.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.525e-05/0.2002, allocations: 35.47 kB / 382.8 MB, free: 7.379 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.2003, allocations: 57.92 kB / 382.8 MB, free: 7.316 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.2005, allocations: 334.8 kB / 383.2 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003404/0.2009, allocations: 101.5 kB / 383.3 MB, free: 6.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/0.2013, allocations: 198.1 kB / 383.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007259/0.202, allocations: 315.1 kB / 383.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.782e-06/0.202, allocations: 4 kB / 383.8 MB, free: 6.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009932/0.203, allocations: 387.4 kB / 384.1 MB, free: 5.875 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.045e-05/0.2031, allocations: 38.78 kB / 384.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.2031, allocations: 4 kB / 384.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002706/0.2034, allocations: 33.19 kB / 384.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.2037, allocations: 63.89 kB / 384.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.2054, allocations: 1.402 MB / 385.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003832/0.2059, allocations: 47.59 kB / 385.7 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.291e-05/0.2059, allocations: 12 kB / 385.7 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004429/0.2063, allocations: 196.4 kB / 385.9 MB, free: 3.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003834/0.2067, allocations: 194.3 kB / 386.1 MB, free: 3.691 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006536/0.2074, allocations: 287.2 kB / 386.4 MB, free: 3.355 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.978e-06/0.2074, allocations: 4 kB / 386.4 MB, free: 3.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0008528/0.2083, allocations: 363.6 kB / 386.8 MB, free: 2.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.816e-05/0.2083, allocations: 33.7 kB / 386.8 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.2084, allocations: 4.469 kB / 386.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001432/0.2085, allocations: 32.84 kB / 386.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002238/0.2087, allocations: 59.88 kB / 386.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001505/0.2103, allocations: 1.398 MB / 388.3 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003482/0.2106, allocations: 35.81 kB / 388.3 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.7e-05/0.2107, allocations: 16.12 kB / 388.3 MB, free: 1.258 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.0002472/0.2109, allocations: 208 kB / 388.5 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.062e-05/0.211, allocations: 27.62 kB / 388.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.292e-05/0.2111, allocations: 33.83 kB / 388.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.2111, allocations: 0 / 388.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.2111, allocations: 0 / 388.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.2111, allocations: 4 kB / 388.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006966/0.2118, allocations: 459.1 kB / 389 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.2118, allocations: 0 / 389 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.212, allocations: 27.97 kB / 389.1 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/0.2121, allocations: 28.83 kB / 389.1 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.2122, allocations: 11.94 kB / 389.1 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/0.2136, allocations: 1.394 MB / 390.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2137, allocations: 4.156 kB / 390.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007615/0.2144, allocations: 270.2 kB / 390.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.513e-05/0.2145, allocations: 104.8 kB / 390.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.2146, allocations: 4 kB / 390.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.2148, allocations: 19.97 kB / 390.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.2149, allocations: 27.91 kB / 390.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.215, allocations: 0 / 390.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003013/0.2153, allocations: 231 kB / 391.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2153, allocations: 0 / 391.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006227/0.2159, allocations: 131.7 kB / 391.3 MB, free: 14.05 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.0002229/0.2161, allocations: 103.2 kB / 391.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.2179, allocations: 0.6885 MB / 392.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.2179, allocations: 448 / 392.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005033/0.2184, allocations: 214.6 kB / 392.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.2188, allocations: 40.62 kB / 392.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.2202, allocations: 489.2 kB / 392.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005089/0.2207, allocations: 0.756 MB / 393.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001872/0.2209, allocations: 42.95 kB / 393.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.158e-05/0.221, allocations: 23.44 kB / 393.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of SimCode: time 8.11e-07/0.221, allocations: 0 / 393.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of Templates: time 0.01194/0.233, allocations: 3.671 MB / 397.3 MB, free: 7.91 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)