Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_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.002328/0.002328, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002786/0.002786, allocations: 190.9 kB / 16.14 MB, free: 6.707 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.885/1.885, allocations: 205.1 MB / 222 MB, free: 4.754 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.001526/0.001525, allocations: 51.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4234/0.4249, allocations: 46.63 MB / 324.7 MB, free: 2.137 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.005163/0.4301, allocations: 2.764 MB / 327.5 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.4321, allocations: 0.7194 MB / 328.2 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000202/0.4323, allocations: 3.75 kB / 328.2 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002339/0.4326, allocations: 39.88 kB / 328.2 MB, free: 15.33 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002239/0.4328, allocations: 76.05 kB / 328.3 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003496/0.4332, allocations: 86.69 kB / 328.4 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004272/0.4336, allocations: 337 kB / 328.7 MB, free: 15 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.4338, allocations: 70.55 kB / 328.8 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002032/0.434, allocations: 122.6 kB / 328.9 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.4343, allocations: 141.3 kB / 329 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.924e-05/0.4343, allocations: 18.06 kB / 329 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.06e-05/0.4344, allocations: 17.34 kB / 329.1 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.719e-05/0.4345, allocations: 63.38 kB / 329.1 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002027/0.4347, allocations: 129.5 kB / 329.3 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004789/0.4352, allocations: 314 kB / 329.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4352, allocations: 0 / 329.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4352, allocations: 1.062 kB / 329.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.4352, allocations: 0 / 329.6 MB, free: 14.41 MB / 270.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.001613/0.4368, allocations: 0.6377 MB / 330.2 MB, free: 13.84 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.242e-05/0.4369, allocations: 14.02 kB / 330.2 MB, free: 13.84 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.437, allocations: 31.59 kB / 330.2 MB, free: 13.82 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005113/0.4375, allocations: 273 kB / 330.5 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.4376, allocations: 16.5 kB / 330.5 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.836e-05/0.4377, allocations: 22.58 kB / 330.5 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007402/0.4384, allocations: 253.6 kB / 330.8 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.4384, allocations: 1.438 kB / 330.8 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.4385, allocations: 8.938 kB / 330.8 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.4385, allocations: 5.469 kB / 330.8 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008322/0.4393, allocations: 242.3 kB / 331 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.4412, allocations: 0.8764 MB / 331.9 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009034/0.4421, allocations: 243.3 kB / 332.2 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003854/0.4425, allocations: 102 kB / 332.3 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.231e-05/0.4425, allocations: 1.094 kB / 332.3 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006803/0.4432, allocations: 178.8 kB / 332.4 MB, free: 12.21 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 1.593e-06/0.4432, allocations: 0 / 332.4 MB, free: 12.21 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.002589/0.4458, allocations: 0.6791 MB / 333.1 MB, free: 11.61 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/0.4459, allocations: 106.8 kB / 333.2 MB, free: 11.48 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000315/0.4463, allocations: 270.6 kB / 333.5 MB, free: 11.21 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.345e-05/0.4463, allocations: 33.7 kB / 333.5 MB, free: 11.17 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.4464, allocations: 175.8 kB / 333.7 MB, free: 10.99 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.948e-05/0.4465, allocations: 43.45 kB / 333.7 MB, free: 10.95 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.223e-05/0.4466, allocations: 53.55 kB / 333.8 MB, free: 10.89 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.4467, allocations: 334.8 kB / 334.1 MB, free: 10.55 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003573/0.4471, allocations: 112.7 kB / 334.2 MB, free: 10.44 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003979/0.4475, allocations: 173.4 kB / 334.4 MB, free: 10.24 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006802/0.4482, allocations: 280.1 kB / 334.7 MB, free: 9.934 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4482, allocations: 4.219 kB / 334.7 MB, free: 9.93 MB / 270.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001264/0.4495, allocations: 447.6 kB / 335.1 MB, free: 9.477 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.135e-05/0.4495, allocations: 41.66 kB / 335.1 MB, free: 9.43 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.4496, allocations: 4 kB / 335.2 MB, free: 9.426 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004148/0.45, allocations: 76.8 kB / 335.2 MB, free: 9.348 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.4502, allocations: 47.97 kB / 335.3 MB, free: 9.301 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002787/0.453, allocations: 1.818 MB / 337.1 MB, free: 7.34 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003808/0.4534, allocations: 55.8 kB / 337.1 MB, free: 7.285 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.4534, allocations: 8 kB / 337.2 MB, free: 7.277 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003573/0.4538, allocations: 176.1 kB / 337.3 MB, free: 7.102 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002959/0.4541, allocations: 161.5 kB / 337.5 MB, free: 6.91 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004932/0.4546, allocations: 233.2 kB / 337.7 MB, free: 6.648 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.056e-06/0.4546, allocations: 8 kB / 337.7 MB, free: 6.641 MB / 270.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007098/0.4553, allocations: 325.9 kB / 338 MB, free: 6.309 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.4554, allocations: 33.95 kB / 338.1 MB, free: 6.27 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.4554, allocations: 4 kB / 338.1 MB, free: 6.266 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001195/0.4555, allocations: 40.7 kB / 338.1 MB, free: 6.223 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.4557, allocations: 35.97 kB / 338.1 MB, free: 6.188 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009426/0.4567, allocations: 1.316 MB / 339.5 MB, free: 4.742 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.457, allocations: 51.95 kB / 339.5 MB, free: 4.691 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.457, allocations: 8 kB / 339.5 MB, free: 4.684 MB / 270.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.0001671/0.4572, allocations: 204.4 kB / 339.7 MB, free: 4.477 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.103e-05/0.4573, allocations: 19.72 kB / 339.7 MB, free: 4.457 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.405e-05/0.4573, allocations: 25.83 kB / 339.8 MB, free: 4.434 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.4573, allocations: 0 / 339.8 MB, free: 4.434 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.4573, allocations: 0 / 339.8 MB, free: 4.434 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4573, allocations: 0 / 339.8 MB, free: 4.434 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003045/0.4577, allocations: 305.3 kB / 340.1 MB, free: 4.086 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4577, allocations: 0 / 340.1 MB, free: 4.086 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.4578, allocations: 19.98 kB / 340.1 MB, free: 4.066 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002603/0.4581, allocations: 80.73 kB / 340.2 MB, free: 3.984 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.4581, allocations: 7.984 kB / 340.2 MB, free: 3.977 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002195/0.4603, allocations: 1.717 MB / 341.9 MB, free: 2.125 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.4603, allocations: 128 / 341.9 MB, free: 2.125 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.4614, allocations: 362 kB / 342.2 MB, free: 1.75 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.4615, allocations: 112.7 kB / 342.4 MB, free: 1.621 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.4615, allocations: 4 kB / 342.4 MB, free: 1.617 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.4618, allocations: 36 kB / 342.4 MB, free: 1.582 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.4619, allocations: 19.97 kB / 342.4 MB, free: 1.562 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.4619, allocations: 11.98 kB / 342.4 MB, free: 1.551 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002432/0.4622, allocations: 190 kB / 342.6 MB, free: 1.363 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4622, allocations: 3.938 kB / 342.6 MB, free: 1.359 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000648/0.4629, allocations: 123.8 kB / 342.7 MB, free: 1.238 MB / 270.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.000196/0.4631, allocations: 99.23 kB / 342.8 MB, free: 1.133 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001974/0.465, allocations: 0.7504 MB / 343.6 MB, free: 340 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4651, allocations: 0 / 343.6 MB, free: 340 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004779/0.4655, allocations: 242.5 kB / 343.8 MB, free: 84 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000422/0.466, allocations: 49.69 kB / 343.9 MB, free: 36 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003223/0.4692, allocations: 0.9753 MB / 344.8 MB, free: 15.04 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004781/0.4697, allocations: 0.7522 MB / 345.6 MB, free: 14.25 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.4699, allocations: 22.3 kB / 345.6 MB, free: 14.23 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.164e-05/0.47, allocations: 23.44 kB / 345.6 MB, free: 14.21 MB / 286.1 MB Notification: Performance of SimCode: time 1.502e-06/0.47, allocations: 0 / 345.6 MB, free: 14.21 MB / 286.1 MB Notification: Performance of Templates: time 0.009369/0.4793, allocations: 3.814 MB / 349.5 MB, free: 10.4 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)