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.0009842/0.0009841, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007661/0.007661, allocations: 168.9 kB / 16.26 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.033/2.033, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0005477/0.000548, allocations: 8 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.3656, allocations: 47.59 MB / 327 MB, free: 1.367 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003531/0.3692, allocations: 2.402 MB / 329.4 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.3707, allocations: 0.7059 MB / 330.2 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.3708, allocations: 8.188 kB / 330.2 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.371, allocations: 35.16 kB / 330.2 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002228/0.3712, allocations: 76.75 kB / 330.3 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.3716, allocations: 82.25 kB / 330.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004168/0.372, allocations: 333.1 kB / 330.7 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002447/0.3723, allocations: 74.75 kB / 330.8 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.3725, allocations: 112.6 kB / 330.9 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002522/0.3727, allocations: 144.3 kB / 331 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.01e-05/0.3728, allocations: 15.66 kB / 331 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.513e-05/0.3729, allocations: 14.69 kB / 331 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.607e-05/0.3729, allocations: 54.48 kB / 331.1 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.3731, allocations: 158 kB / 331.2 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003824/0.3735, allocations: 299.1 kB / 331.5 MB, free: 13.93 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3735, allocations: 0 / 331.5 MB, free: 13.93 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.3735, allocations: 0.9688 kB / 331.5 MB, free: 13.93 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.894e-06/0.3736, allocations: 0 / 331.5 MB, free: 13.93 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.001501/0.3751, allocations: 0.6192 MB / 332.2 MB, free: 13.38 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.3751, allocations: 9.312 kB / 332.2 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.315e-05/0.3752, allocations: 31.75 kB / 332.2 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.3757, allocations: 268.6 kB / 332.5 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/0.3757, allocations: 21.17 kB / 332.5 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.113e-05/0.3758, allocations: 22.09 kB / 332.5 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007671/0.3766, allocations: 263.3 kB / 332.8 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.3766, allocations: 1.188 kB / 332.8 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/0.3766, allocations: 10.2 kB / 332.8 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.3766, allocations: 4.344 kB / 332.8 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00085/0.3775, allocations: 272.6 kB / 333 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.3794, allocations: 0.8966 MB / 333.9 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009569/0.3803, allocations: 279.7 kB / 334.2 MB, free: 11.92 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003913/0.3807, allocations: 118.7 kB / 334.3 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.3808, allocations: 2.031 kB / 334.3 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005675/0.3814, allocations: 194.7 kB / 334.5 MB, free: 11.66 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 2.174e-06/0.3814, allocations: 0 / 334.5 MB, free: 11.66 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.002567/0.3839, allocations: 0.7527 MB / 335.3 MB, free: 10.88 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.894e-05/0.384, allocations: 110.8 kB / 335.4 MB, free: 10.75 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003387/0.3844, allocations: 270.5 kB / 335.6 MB, free: 10.47 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.3844, allocations: 29.7 kB / 335.7 MB, free: 10.44 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.3846, allocations: 179.8 kB / 335.8 MB, free: 10.26 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.265e-05/0.3846, allocations: 35.45 kB / 335.9 MB, free: 10.22 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.3847, allocations: 33.64 kB / 335.9 MB, free: 10.18 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.3849, allocations: 334.8 kB / 336.2 MB, free: 9.848 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003747/0.3852, allocations: 119.9 kB / 336.4 MB, free: 9.73 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004274/0.3857, allocations: 189.3 kB / 336.5 MB, free: 9.512 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007614/0.3865, allocations: 312.2 kB / 336.8 MB, free: 9.176 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3865, allocations: 0 / 336.8 MB, free: 9.176 MB / 270.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001294/0.3878, allocations: 495.6 kB / 337.3 MB, free: 8.676 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001315/0.3879, allocations: 173.6 kB / 337.5 MB, free: 8.469 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.3879, allocations: 4 kB / 337.5 MB, free: 8.465 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003962/0.3883, allocations: 80.8 kB / 337.6 MB, free: 8.383 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/0.3885, allocations: 55.91 kB / 337.6 MB, free: 8.328 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002864/0.3914, allocations: 1.869 MB / 339.5 MB, free: 6.316 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003761/0.3918, allocations: 59.73 kB / 339.6 MB, free: 6.258 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.3918, allocations: 8 kB / 339.6 MB, free: 6.25 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.846e-06/0.3919, allocations: 8.062 kB / 339.6 MB, free: 6.242 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007715/0.3926, allocations: 306.6 kB / 339.9 MB, free: 5.934 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3927, allocations: 0 / 339.9 MB, free: 5.934 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.822e-05/0.3927, allocations: 32.72 kB / 339.9 MB, free: 5.898 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.3929, allocations: 59.98 kB / 340 MB, free: 5.84 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009712/0.3939, allocations: 1.304 MB / 341.3 MB, free: 4.402 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003132/0.3943, allocations: 47.84 kB / 341.3 MB, free: 4.355 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.3943, allocations: 8 kB / 341.3 MB, free: 4.348 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.0002286/0.3945, allocations: 221.1 kB / 341.5 MB, free: 4.121 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.363e-05/0.3946, allocations: 35.7 kB / 341.6 MB, free: 4.086 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.331e-05/0.3946, allocations: 21.83 kB / 341.6 MB, free: 4.07 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3946, allocations: 4 kB / 341.6 MB, free: 4.066 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3946, allocations: 0 / 341.6 MB, free: 4.066 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/0.3947, allocations: 0 / 341.6 MB, free: 4.066 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003158/0.395, allocations: 289.4 kB / 341.9 MB, free: 3.734 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.395, allocations: 3.938 kB / 341.9 MB, free: 3.73 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.3951, allocations: 31.97 kB / 341.9 MB, free: 3.699 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002787/0.3954, allocations: 88.73 kB / 342 MB, free: 3.609 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.3955, allocations: 4 kB / 342 MB, free: 3.605 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002345/0.3978, allocations: 1.752 MB / 343.8 MB, free: 1.719 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.3978, allocations: 3.938 kB / 343.8 MB, free: 1.715 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.399, allocations: 401.4 kB / 344.2 MB, free: 1.301 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.348e-05/0.3991, allocations: 100.8 kB / 344.3 MB, free: 1.184 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.741e-05/0.3991, allocations: 4 kB / 344.3 MB, free: 1.18 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.3994, allocations: 39.97 kB / 344.3 MB, free: 1.141 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.285e-05/0.3995, allocations: 27.97 kB / 344.3 MB, free: 1.113 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.3995, allocations: 4 kB / 344.3 MB, free: 1.109 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002111/0.3997, allocations: 190 kB / 344.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3997, allocations: 0 / 344.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005905/0.4003, allocations: 127.8 kB / 344.6 MB, free: 0.7969 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.000153/0.4005, allocations: 99.19 kB / 344.7 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.4024, allocations: 0.8089 MB / 345.5 MB, free: 15.83 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.4024, allocations: 256 / 345.5 MB, free: 15.83 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005147/0.4029, allocations: 259.1 kB / 345.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.4033, allocations: 44.48 kB / 345.8 MB, free: 15.52 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003254/0.4066, allocations: 1.072 MB / 346.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.4069, allocations: 0.7521 MB / 347.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.4071, allocations: 30.28 kB / 347.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.987e-05/0.4072, allocations: 19.44 kB / 347.7 MB, free: 13.6 MB / 286.1 MB Notification: Performance of SimCode: time 1.843e-06/0.4072, allocations: 0 / 347.7 MB, free: 13.6 MB / 286.1 MB Notification: Performance of Templates: time 0.0089/0.4161, allocations: 3.77 MB / 351.5 MB, free: 9.836 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)