Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008847/0.008847, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001763/0.001763, allocations: 195.2 kB / 16.67 MB, free: 5.52 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.856/1.856, allocations: 205.1 MB / 222.5 MB, free: 12.25 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.001437/0.001437, allocations: 47.94 kB / 326.6 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1443, allocations: 46.61 MB / 373.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.005015/0.1494, allocations: 2.71 MB / 375.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.1508, allocations: 0.7212 MB / 376.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.1509, allocations: 7.938 kB / 376.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.1512, allocations: 43.58 kB / 376.7 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002181/0.1514, allocations: 99.23 kB / 376.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003698/0.1518, allocations: 91.83 kB / 376.9 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004963/0.1523, allocations: 366.4 kB / 377.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000296/0.1526, allocations: 80.69 kB / 377.3 MB, free: 432 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002161/0.1528, allocations: 131.5 kB / 377.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002253/0.1531, allocations: 159.3 kB / 377.6 MB, free: 140 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.892e-05/0.1531, allocations: 28 kB / 377.6 MB, free: 112 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.992e-05/0.1532, allocations: 28 kB / 377.6 MB, free: 84 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.98e-05/0.1533, allocations: 67.7 kB / 377.7 MB, free: 16 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3818/0.5351, allocations: 141.8 kB / 377.8 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007199/0.5359, allocations: 324.5 kB / 378.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.5359, allocations: 2.078 kB / 378.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.957e-06/0.5359, allocations: 0 / 378.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.5359, allocations: 0 / 378.2 MB, free: 10.13 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001695/0.5376, allocations: 0.6355 MB / 378.8 MB, free: 9.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.333e-05/0.5377, allocations: 9.844 kB / 378.8 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.5379, allocations: 33.06 kB / 378.8 MB, free: 9.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000674/0.5386, allocations: 286.5 kB / 379.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.36e-05/0.5386, allocations: 15.25 kB / 379.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.479e-05/0.5387, allocations: 17.44 kB / 379.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009469/0.5396, allocations: 250.3 kB / 379.4 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.5397, allocations: 3.938 kB / 379.4 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.799e-05/0.5397, allocations: 17.2 kB / 379.4 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.5397, allocations: 4.25 kB / 379.4 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.5408, allocations: 242.3 kB / 379.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.543, allocations: 0.8689 MB / 380.5 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.5442, allocations: 240.3 kB / 380.8 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005405/0.5448, allocations: 99.73 kB / 380.9 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.92e-05/0.5448, allocations: 7.484 kB / 380.9 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007864/0.5456, allocations: 180.6 kB / 381 MB, free: 8.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 4.308e-06/0.5456, allocations: 0 / 381 MB, free: 8.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.00328/0.5489, allocations: 0.6771 MB / 381.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.665e-05/0.549, allocations: 106.5 kB / 381.8 MB, free: 8.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005362/0.5496, allocations: 264.1 kB / 382.1 MB, free: 8.461 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.297e-05/0.5496, allocations: 30.78 kB / 382.1 MB, free: 8.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002824/0.5499, allocations: 173.4 kB / 382.3 MB, free: 8.312 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.666e-05/0.55, allocations: 42.86 kB / 382.3 MB, free: 8.289 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.5502, allocations: 42.98 kB / 382.4 MB, free: 8.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002687/0.5505, allocations: 339.9 kB / 382.7 MB, free: 7.953 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005649/0.551, allocations: 110.5 kB / 382.8 MB, free: 7.941 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005901/0.5516, allocations: 157.4 kB / 383 MB, free: 7.867 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008781/0.5525, allocations: 258.7 kB / 383.2 MB, free: 7.777 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.5526, allocations: 0 / 383.2 MB, free: 7.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001716/0.5543, allocations: 443 kB / 383.6 MB, free: 7.684 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.249e-05/0.5544, allocations: 32.16 kB / 383.7 MB, free: 7.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.5544, allocations: 3.391 kB / 383.7 MB, free: 7.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005706/0.555, allocations: 81.75 kB / 383.8 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000249/0.5552, allocations: 40.11 kB / 383.8 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0036/0.5588, allocations: 1.967 MB / 385.8 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000531/0.5594, allocations: 49.31 kB / 385.8 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.657e-05/0.5595, allocations: 7.5 kB / 385.8 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006039/0.5601, allocations: 179.6 kB / 386 MB, free: 6.016 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004673/0.5606, allocations: 145.2 kB / 386.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006935/0.5613, allocations: 230.5 kB / 386.4 MB, free: 5.805 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.898e-06/0.5613, allocations: 0 / 386.4 MB, free: 5.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.001077/0.5624, allocations: 320.6 kB / 386.7 MB, free: 5.656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.997e-05/0.5624, allocations: 34.56 kB / 386.7 MB, free: 5.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.5624, allocations: 1.094 kB / 386.7 MB, free: 5.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001908/0.5626, allocations: 34.8 kB / 386.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.5629, allocations: 41.95 kB / 386.8 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.564, allocations: 1.614 MB / 388.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003736/0.5644, allocations: 47.55 kB / 388.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.5644, allocations: 11.09 kB / 388.5 MB, free: 4.008 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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.0001965/0.5646, allocations: 199.1 kB / 388.6 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.994e-05/0.5647, allocations: 26.75 kB / 388.7 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.576e-05/0.5647, allocations: 27.75 kB / 388.7 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.5648, allocations: 1.875 kB / 388.7 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.5648, allocations: 0.6562 kB / 388.7 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.5648, allocations: 4.703 kB / 388.7 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003877/0.5652, allocations: 291.8 kB / 389 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.5652, allocations: 0 / 389 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.5654, allocations: 22.23 kB / 389 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003604/0.5657, allocations: 81.77 kB / 389.1 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.5658, allocations: 2.484 kB / 389.1 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002615/0.5684, allocations: 1.756 MB / 390.8 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5684, allocations: 0 / 390.8 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.5697, allocations: 360 kB / 391.2 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.5698, allocations: 97.22 kB / 391.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.636e-05/0.5699, allocations: 10.7 kB / 391.3 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.5702, allocations: 30.05 kB / 391.3 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.5703, allocations: 21.44 kB / 391.4 MB, free: 1.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.5703, allocations: 10.12 kB / 391.4 MB, free: 1.766 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002418/0.5706, allocations: 192.9 kB / 391.6 MB, free: 1.652 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5706, allocations: 0 / 391.6 MB, free: 1.652 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007768/0.5714, allocations: 122.7 kB / 391.7 MB, free: 1.629 MB / 318.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.0002064/0.5716, allocations: 113.6 kB / 391.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001864/0.5734, allocations: 0.6849 MB / 392.5 MB, free: 1.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.5735, allocations: 0 / 392.5 MB, free: 1.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005381/0.574, allocations: 227.6 kB / 392.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004166/0.5744, allocations: 53.73 kB / 392.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.5758, allocations: 451.7 kB / 393.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.5762, allocations: 0.7476 MB / 393.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001528/0.5763, allocations: 25.45 kB / 394 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.359e-05/0.5764, allocations: 18.75 kB / 394 MB, free: 15.95 MB / 334.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5764, allocations: 4 kB / 394 MB, free: 15.95 MB / 334.1 MB Notification: Performance of Templates: time 0.0153/0.5917, allocations: 4.235 MB / 398.2 MB, free: 15.31 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1)