Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001606/0.001606, allocations: 107.4 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.002325/0.002325, allocations: 191.8 kB / 16.14 MB, free: 6.703 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.792/1.792, allocations: 205.1 MB / 222 MB, free: 5 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.001394/0.001394, allocations: 43.94 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.358, allocations: 46.63 MB / 324.7 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.00536/0.3634, allocations: 2.768 MB / 327.5 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.3654, allocations: 0.7227 MB / 328.2 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002178/0.3657, allocations: 7.844 kB / 328.2 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002299/0.3659, allocations: 28.17 kB / 328.2 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002301/0.3661, allocations: 80.61 kB / 328.3 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003914/0.3665, allocations: 78.94 kB / 328.4 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005919/0.3671, allocations: 336.9 kB / 328.7 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003029/0.3674, allocations: 70.61 kB / 328.8 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002816/0.3677, allocations: 117.8 kB / 328.9 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002697/0.368, allocations: 145.1 kB / 329 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.451e-05/0.3681, allocations: 17.41 kB / 329 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.953e-05/0.3682, allocations: 23.03 kB / 329.1 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.2e-05/0.3683, allocations: 53.28 kB / 329.1 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000228/0.3685, allocations: 138.4 kB / 329.3 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004849/0.369, allocations: 313.8 kB / 329.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.529e-05/0.369, allocations: 1.469 kB / 329.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.369, allocations: 0 / 329.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.3691, allocations: 0 / 329.6 MB, free: 14.11 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.001833/0.3709, allocations: 0.6375 MB / 330.2 MB, free: 13.54 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.485e-05/0.371, allocations: 9.688 kB / 330.2 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.3711, allocations: 27.75 kB / 330.2 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005411/0.3717, allocations: 289.3 kB / 330.5 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.3717, allocations: 12.22 kB / 330.5 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.816e-05/0.3718, allocations: 22.97 kB / 330.6 MB, free: 13.22 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007905/0.3726, allocations: 242.3 kB / 330.8 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.3726, allocations: 3.984 kB / 330.8 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/0.3727, allocations: 10.38 kB / 330.8 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.3727, allocations: 8.438 kB / 330.8 MB, free: 13.06 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008499/0.3735, allocations: 238 kB / 331 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.3756, allocations: 0.8729 MB / 331.9 MB, free: 12.22 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009934/0.3766, allocations: 247.4 kB / 332.2 MB, free: 12.09 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003844/0.377, allocations: 101.8 kB / 332.3 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.538e-05/0.3771, allocations: 1.25 kB / 332.3 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007978/0.3779, allocations: 187.2 kB / 332.4 MB, free: 11.89 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.3779, allocations: 0 / 332.4 MB, free: 11.89 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.002824/0.3807, allocations: 0.6745 MB / 333.1 MB, free: 11.52 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.3808, allocations: 106.8 kB / 333.2 MB, free: 11.39 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004237/0.3813, allocations: 266.6 kB / 333.5 MB, free: 11.12 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.163e-05/0.3813, allocations: 33.7 kB / 333.5 MB, free: 11.08 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.3815, allocations: 179.8 kB / 333.7 MB, free: 10.9 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.936e-05/0.3816, allocations: 47.44 kB / 333.7 MB, free: 10.85 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.3817, allocations: 45.61 kB / 333.8 MB, free: 10.8 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002458/0.382, allocations: 338.8 kB / 334.1 MB, free: 10.46 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/0.3824, allocations: 112.7 kB / 334.2 MB, free: 10.35 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004198/0.3828, allocations: 173.6 kB / 334.4 MB, free: 10.14 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007517/0.3836, allocations: 280.1 kB / 334.7 MB, free: 9.84 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3836, allocations: 0 / 334.7 MB, free: 9.84 MB / 270.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001283/0.3849, allocations: 459.5 kB / 335.1 MB, free: 9.375 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.5e-05/0.385, allocations: 29.7 kB / 335.1 MB, free: 9.34 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.385, allocations: 8.031 kB / 335.2 MB, free: 9.332 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005097/0.3855, allocations: 76.8 kB / 335.2 MB, free: 9.254 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.3857, allocations: 43.91 kB / 335.3 MB, free: 9.211 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003133/0.3889, allocations: 1.818 MB / 337.1 MB, free: 7.25 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003915/0.3893, allocations: 51.8 kB / 337.1 MB, free: 7.199 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.082e-05/0.3893, allocations: 12 kB / 337.1 MB, free: 7.188 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003734/0.3897, allocations: 176.2 kB / 337.3 MB, free: 7.012 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002898/0.39, allocations: 157.5 kB / 337.5 MB, free: 6.824 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004935/0.3905, allocations: 245.2 kB / 337.7 MB, free: 6.551 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.663e-06/0.3905, allocations: 4 kB / 337.7 MB, free: 6.547 MB / 270.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007575/0.3913, allocations: 329.8 kB / 338 MB, free: 6.211 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.3913, allocations: 37.69 kB / 338.1 MB, free: 6.168 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.3913, allocations: 256 / 338.1 MB, free: 6.168 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001131/0.3915, allocations: 36.78 kB / 338.1 MB, free: 6.129 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.3917, allocations: 39.91 kB / 338.2 MB, free: 6.09 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.3928, allocations: 1.316 MB / 339.5 MB, free: 4.645 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.3932, allocations: 43.84 kB / 339.5 MB, free: 4.602 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.3932, allocations: 12 kB / 339.5 MB, free: 4.59 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.0002068/0.3934, allocations: 196.5 kB / 339.7 MB, free: 4.391 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.781e-05/0.3935, allocations: 19.72 kB / 339.7 MB, free: 4.371 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.395e-05/0.3935, allocations: 29.83 kB / 339.8 MB, free: 4.344 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.3936, allocations: 0 / 339.8 MB, free: 4.344 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3936, allocations: 0 / 339.8 MB, free: 4.344 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.3936, allocations: 4 kB / 339.8 MB, free: 4.34 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003085/0.3939, allocations: 305.3 kB / 340.1 MB, free: 3.992 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3939, allocations: 0 / 340.1 MB, free: 3.992 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.394, allocations: 23.97 kB / 340.1 MB, free: 3.969 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002615/0.3943, allocations: 68.81 kB / 340.2 MB, free: 3.898 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.3943, allocations: 11.98 kB / 340.2 MB, free: 3.887 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002248/0.3966, allocations: 1.725 MB / 341.9 MB, free: 2.027 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3966, allocations: 4.031 kB / 341.9 MB, free: 2.023 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.3977, allocations: 357.9 kB / 342.2 MB, free: 1.652 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.3978, allocations: 108.7 kB / 342.4 MB, free: 1.527 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.963e-05/0.3979, allocations: 4 kB / 342.4 MB, free: 1.523 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002531/0.3981, allocations: 35.95 kB / 342.4 MB, free: 1.488 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.3982, allocations: 24 kB / 342.4 MB, free: 1.465 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.3983, allocations: 4 kB / 342.4 MB, free: 1.461 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002439/0.3985, allocations: 194 kB / 342.6 MB, free: 1.27 MB / 270.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.3985, allocations: 0 / 342.6 MB, free: 1.27 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006463/0.3992, allocations: 123.7 kB / 342.7 MB, free: 1.148 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.0002052/0.3994, allocations: 99.38 kB / 342.8 MB, free: 1.043 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.4011, allocations: 0.7583 MB / 343.6 MB, free: 240 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4012, allocations: 4.062 kB / 343.6 MB, free: 236 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004953/0.4017, allocations: 230.6 kB / 343.8 MB, free: 15.99 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.402, allocations: 49.31 kB / 343.9 MB, free: 15.94 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003/0.405, allocations: 0.9791 MB / 344.8 MB, free: 14.94 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.4054, allocations: 0.7483 MB / 345.6 MB, free: 14.16 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.4055, allocations: 26.28 kB / 345.6 MB, free: 14.14 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.208e-05/0.4056, allocations: 19.44 kB / 345.6 MB, free: 14.12 MB / 286.1 MB Notification: Performance of SimCode: time 4.3e-07/0.4056, allocations: 4 kB / 345.6 MB, free: 14.12 MB / 286.1 MB Notification: Performance of Templates: time 0.008726/0.4144, allocations: 3.813 MB / 349.5 MB, free: 10.3 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)