Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 106.3 kB / 16.92 MB, free: 6.332 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.0012/0.0012, allocations: 191.4 kB / 17.85 MB, free: 5.414 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 / 223.7 MB, free: 12.34 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.001476/0.001476, allocations: 55.92 kB / 280 MB, free: 3.16 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.1755, allocations: 46.62 MB / 326.6 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.005582/0.1812, allocations: 2.734 MB / 329.4 MB, free: 1.703 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.1832, allocations: 0.7098 MB / 330.1 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002296/0.1834, allocations: 3.938 kB / 330.1 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000261/0.1838, allocations: 39.58 kB / 330.1 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002548/0.184, allocations: 95.25 kB / 330.2 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004775/0.1845, allocations: 91.81 kB / 330.3 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006297/0.1852, allocations: 354.6 kB / 330.6 MB, free: 420 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003284/0.1855, allocations: 80.7 kB / 330.7 MB, free: 344 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.1857, allocations: 131.5 kB / 330.9 MB, free: 212 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002463/0.186, allocations: 159.3 kB / 331 MB, free: 52 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.419e-05/0.1861, allocations: 28 kB / 331 MB, free: 24 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.1862, allocations: 32.05 kB / 331.1 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.1863, allocations: 67.64 kB / 331.1 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002106/0.1865, allocations: 143.3 kB / 331.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005261/0.1871, allocations: 327.1 kB / 331.6 MB, free: 15.46 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.1871, allocations: 0 / 331.6 MB, free: 15.46 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.1871, allocations: 0 / 331.6 MB, free: 15.46 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.1871, allocations: 0 / 331.6 MB, free: 15.46 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001754/0.1889, allocations: 0.6379 MB / 332.2 MB, free: 14.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.855e-05/0.189, allocations: 12.03 kB / 332.2 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.1891, allocations: 36.55 kB / 332.3 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.1895, allocations: 275.7 kB / 332.5 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/0.1896, allocations: 12.81 kB / 332.6 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.1896, allocations: 28.3 kB / 332.6 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006736/0.1903, allocations: 243.5 kB / 332.8 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1903, allocations: 0 / 332.8 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.1904, allocations: 12 kB / 332.8 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.1904, allocations: 4 kB / 332.8 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000799/0.1912, allocations: 245.6 kB / 333.1 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.1932, allocations: 0.8777 MB / 334 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009299/0.1941, allocations: 242.5 kB / 334.2 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003283/0.1945, allocations: 100.8 kB / 334.3 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.631e-05/0.1945, allocations: 4 kB / 334.3 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007475/0.1953, allocations: 177.8 kB / 334.5 MB, free: 12.38 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 2.284e-06/0.1953, allocations: 3.938 kB / 334.5 MB, free: 12.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.002632/0.1979, allocations: 0.6746 MB / 335.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.1981, allocations: 102.8 kB / 335.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003734/0.1984, allocations: 274.6 kB / 335.5 MB, free: 11.27 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.351e-05/0.1985, allocations: 33.64 kB / 335.6 MB, free: 11.23 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001821/0.1987, allocations: 179.8 kB / 335.7 MB, free: 11.05 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.311e-05/0.1987, allocations: 43.39 kB / 335.8 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.948e-05/0.1988, allocations: 45.7 kB / 335.8 MB, free: 10.96 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.199, allocations: 338.8 kB / 336.1 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003657/0.1994, allocations: 108.7 kB / 336.3 MB, free: 10.51 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003969/0.1998, allocations: 181.3 kB / 336.4 MB, free: 10.3 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006852/0.2005, allocations: 276.5 kB / 336.7 MB, free: 9.996 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.2005, allocations: 4 kB / 336.7 MB, free: 9.992 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001324/0.2019, allocations: 447.5 kB / 337.1 MB, free: 9.539 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.53e-05/0.2019, allocations: 37.69 kB / 337.2 MB, free: 9.496 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.202, allocations: 8.031 kB / 337.2 MB, free: 9.488 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005689/0.2025, allocations: 76.8 kB / 337.3 MB, free: 9.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.2028, allocations: 40.12 kB / 337.3 MB, free: 9.371 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004164/0.207, allocations: 2.025 MB / 339.3 MB, free: 7.199 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000463/0.2075, allocations: 55.67 kB / 339.4 MB, free: 7.145 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/0.2075, allocations: 12 kB / 339.4 MB, free: 7.133 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004634/0.208, allocations: 180.1 kB / 339.6 MB, free: 6.953 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003329/0.2083, allocations: 153.5 kB / 339.7 MB, free: 6.77 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006658/0.209, allocations: 245.2 kB / 340 MB, free: 6.496 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.974e-06/0.209, allocations: 0 / 340 MB, free: 6.496 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0008184/0.2099, allocations: 338.9 kB / 340.3 MB, free: 6.152 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.927e-05/0.2099, allocations: 29.7 kB / 340.3 MB, free: 6.117 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2099, allocations: 4 kB / 340.3 MB, free: 6.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001322/0.2101, allocations: 24.84 kB / 340.3 MB, free: 6.086 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002038/0.2103, allocations: 43.91 kB / 340.4 MB, free: 6.043 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/0.2119, allocations: 1.414 MB / 341.8 MB, free: 4.492 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003567/0.2123, allocations: 43.88 kB / 341.8 MB, free: 4.449 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.2123, allocations: 15.98 kB / 341.9 MB, free: 4.434 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (20): * Single equations (assignments): 18 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002609/0.2126, allocations: 196.5 kB / 342.1 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.002e-05/0.2127, allocations: 23.72 kB / 342.1 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.961e-05/0.2127, allocations: 25.83 kB / 342.1 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2127, allocations: 8 kB / 342.1 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/0.2128, allocations: 8 kB / 342.1 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2128, allocations: 0 / 342.1 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000409/0.2132, allocations: 281.5 kB / 342.4 MB, free: 3.848 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.2132, allocations: 3.938 kB / 342.4 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.2134, allocations: 27.97 kB / 342.4 MB, free: 3.816 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002939/0.2137, allocations: 76.8 kB / 342.5 MB, free: 3.738 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.2137, allocations: 4 kB / 342.5 MB, free: 3.734 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003278/0.217, allocations: 1.923 MB / 344.4 MB, free: 1.672 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.217, allocations: 0 / 344.4 MB, free: 1.672 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.2183, allocations: 365.9 kB / 344.8 MB, free: 1.293 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.2184, allocations: 100.8 kB / 344.9 MB, free: 1.176 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.964e-05/0.2184, allocations: 4.125 kB / 344.9 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.2187, allocations: 39.95 kB / 344.9 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.2189, allocations: 15.98 kB / 344.9 MB, free: 1.117 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.2189, allocations: 7.984 kB / 344.9 MB, free: 1.109 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002557/0.2192, allocations: 197.9 kB / 345.1 MB, free: 0.918 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2192, allocations: 0 / 345.1 MB, free: 0.918 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006869/0.2199, allocations: 123.7 kB / 345.3 MB, free: 0.7969 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (9): * Single equations (assignments): 6 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002586/0.2201, allocations: 115.2 kB / 345.4 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002183/0.2223, allocations: 0.7591 MB / 346.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.2223, allocations: 0 / 346.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006281/0.223, allocations: 235 kB / 346.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.2234, allocations: 48.52 kB / 346.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003723/0.2271, allocations: 0.9018 MB / 347.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007227/0.2279, allocations: 0.7404 MB / 348 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.2281, allocations: 34.28 kB / 348.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.976e-05/0.2282, allocations: 19.44 kB / 348.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of SimCode: time 2.043e-06/0.2282, allocations: 0 / 348.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of Templates: time 0.01151/0.2397, allocations: 4.141 MB / 352.2 MB, free: 9.688 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)