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.001534/0.001535, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001939/0.001939, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.979/1.979, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.002371/0.002371, allocations: 56.3 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3784/0.3808, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.005004/0.3859, allocations: 2.724 MB / 328 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.3877, allocations: 0.7216 MB / 328.8 MB, free: 15.1 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/0.388, allocations: 4.5 kB / 328.8 MB, free: 15.1 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001925/0.3882, allocations: 46.98 kB / 328.8 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002267/0.3884, allocations: 88.72 kB / 328.9 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000385/0.3888, allocations: 86.27 kB / 329 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005578/0.3894, allocations: 358.6 kB / 329.3 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002895/0.3897, allocations: 82.03 kB / 329.4 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002396/0.3899, allocations: 138.4 kB / 329.6 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000254/0.3902, allocations: 148.6 kB / 329.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.444e-05/0.3903, allocations: 29.38 kB / 329.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.323e-05/0.3904, allocations: 29.91 kB / 329.8 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.3905, allocations: 66.45 kB / 329.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001964/0.3907, allocations: 149.1 kB / 330 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.3911, allocations: 326 kB / 330.3 MB, free: 14.06 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.3912, allocations: 0 / 330.3 MB, free: 14.06 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.499e-06/0.3912, allocations: 0.875 kB / 330.3 MB, free: 14.06 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.3912, allocations: 0 / 330.3 MB, free: 14.06 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.00158/0.3928, allocations: 0.6385 MB / 330.9 MB, free: 13.48 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.477e-05/0.3929, allocations: 13.91 kB / 330.9 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.393, allocations: 27.09 kB / 331 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004479/0.3934, allocations: 280.8 kB / 331.2 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.3935, allocations: 17.19 kB / 331.3 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.061e-05/0.3935, allocations: 21.69 kB / 331.3 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007461/0.3943, allocations: 246.3 kB / 331.5 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.3943, allocations: 4 kB / 331.5 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/0.3943, allocations: 6.031 kB / 331.5 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.3944, allocations: 5.594 kB / 331.5 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008617/0.3952, allocations: 241.4 kB / 331.8 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001937/0.3972, allocations: 0.8849 MB / 332.7 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009788/0.3982, allocations: 239.7 kB / 332.9 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00041/0.3986, allocations: 102.3 kB / 333 MB, free: 11.99 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.698e-05/0.3986, allocations: 1.125 kB / 333 MB, free: 11.99 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007225/0.3994, allocations: 182.1 kB / 333.2 MB, free: 11.85 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 2.114e-06/0.3994, allocations: 1.188 kB / 333.2 MB, free: 11.85 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.002559/0.402, allocations: 0.6728 MB / 333.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.4021, allocations: 110.8 kB / 334 MB, free: 11.03 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004091/0.4025, allocations: 270.6 kB / 334.2 MB, free: 10.75 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.929e-05/0.4026, allocations: 29.7 kB / 334.2 MB, free: 10.71 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.4027, allocations: 179.8 kB / 334.4 MB, free: 10.54 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.594e-05/0.4028, allocations: 35.45 kB / 334.5 MB, free: 10.5 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.4029, allocations: 49.61 kB / 334.5 MB, free: 10.45 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.4031, allocations: 334.8 kB / 334.8 MB, free: 10.11 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000372/0.4035, allocations: 112.7 kB / 334.9 MB, free: 9.996 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000378/0.4038, allocations: 173.4 kB / 335.1 MB, free: 9.793 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007058/0.4046, allocations: 276.2 kB / 335.4 MB, free: 9.492 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4046, allocations: 0 / 335.4 MB, free: 9.492 MB / 270.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001251/0.4058, allocations: 459.5 kB / 335.8 MB, free: 9.027 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.016e-05/0.4059, allocations: 33.7 kB / 335.9 MB, free: 8.988 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.4059, allocations: 0 / 335.9 MB, free: 8.988 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004608/0.4064, allocations: 80.8 kB / 335.9 MB, free: 8.906 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002302/0.4066, allocations: 47.92 kB / 336 MB, free: 8.859 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002997/0.4096, allocations: 2.017 MB / 338 MB, free: 6.695 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003934/0.41, allocations: 51.73 kB / 338.1 MB, free: 6.645 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.732e-05/0.4101, allocations: 8.219 kB / 338.1 MB, free: 6.637 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003949/0.4105, allocations: 184.1 kB / 338.2 MB, free: 6.453 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003153/0.4108, allocations: 169.3 kB / 338.4 MB, free: 6.254 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005306/0.4113, allocations: 241.2 kB / 338.6 MB, free: 5.984 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.907e-06/0.4114, allocations: 0 / 338.6 MB, free: 5.984 MB / 270.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007692/0.4121, allocations: 329.9 kB / 339 MB, free: 5.648 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.416e-05/0.4122, allocations: 33.7 kB / 339 MB, free: 5.609 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.4122, allocations: 4 kB / 339 MB, free: 5.605 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001279/0.4123, allocations: 28.83 kB / 339 MB, free: 5.574 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.4126, allocations: 52.12 kB / 339.1 MB, free: 5.523 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.4137, allocations: 1.411 MB / 340.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003442/0.4141, allocations: 51.91 kB / 340.5 MB, free: 3.926 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.4141, allocations: 8 kB / 340.5 MB, free: 3.918 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.0001866/0.4143, allocations: 196.4 kB / 340.7 MB, free: 3.719 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.785e-05/0.4144, allocations: 23.78 kB / 340.8 MB, free: 3.695 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.613e-05/0.4145, allocations: 25.83 kB / 340.8 MB, free: 3.672 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.4145, allocations: 0 / 340.8 MB, free: 3.672 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4145, allocations: 3.938 kB / 340.8 MB, free: 3.668 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.4145, allocations: 3.984 kB / 340.8 MB, free: 3.664 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000312/0.4148, allocations: 293.4 kB / 341.1 MB, free: 3.328 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4148, allocations: 0 / 341.1 MB, free: 3.328 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001325/0.4149, allocations: 23.97 kB / 341.1 MB, free: 3.305 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002705/0.4152, allocations: 76.8 kB / 341.2 MB, free: 3.227 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.4153, allocations: 7.938 kB / 341.2 MB, free: 3.219 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00263/0.4179, allocations: 1.916 MB / 343.1 MB, free: 1.164 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.4179, allocations: 4 kB / 343.1 MB, free: 1.16 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.419, allocations: 358 kB / 343.5 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.4192, allocations: 112.7 kB / 343.6 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.881e-05/0.4192, allocations: 4 kB / 343.6 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.4194, allocations: 27.97 kB / 343.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.47e-05/0.4196, allocations: 28 kB / 343.6 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.4196, allocations: 4 kB / 343.6 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002172/0.4198, allocations: 198 kB / 343.8 MB, free: 416 kB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4198, allocations: 0 / 343.8 MB, free: 416 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006531/0.4205, allocations: 123.8 kB / 343.9 MB, free: 292 kB / 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.0001895/0.4207, allocations: 107.1 kB / 344 MB, free: 176 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.00216/0.4228, allocations: 0.7623 MB / 344.8 MB, free: 15.36 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.4228, allocations: 4 kB / 344.8 MB, free: 15.36 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005114/0.4234, allocations: 239.2 kB / 345 MB, free: 15.11 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.4238, allocations: 36.53 kB / 345.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003365/0.4272, allocations: 0.8992 MB / 346 MB, free: 14.15 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.4276, allocations: 0.7522 MB / 346.7 MB, free: 13.37 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000167/0.4278, allocations: 22.3 kB / 346.8 MB, free: 13.35 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.307e-05/0.4279, allocations: 19.44 kB / 346.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of SimCode: time 1.463e-06/0.4279, allocations: 0 / 346.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of Templates: time 0.009529/0.4374, allocations: 4.141 MB / 350.9 MB, free: 9.184 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)