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.001126/0.001126, allocations: 98.27 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.01216/0.01216, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.132/2.132, 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.0005734/0.0005737, allocations: 12 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3601, allocations: 47.59 MB / 327 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004258/0.3644, allocations: 2.401 MB / 329.4 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002118/0.3666, allocations: 0.7108 MB / 330.2 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.3669, allocations: 3.312 kB / 330.2 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002186/0.3671, allocations: 32.05 kB / 330.2 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002512/0.3674, allocations: 76.3 kB / 330.3 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004125/0.3678, allocations: 86.34 kB / 330.3 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006008/0.3684, allocations: 336.8 kB / 330.7 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003128/0.3687, allocations: 67 kB / 330.7 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.369, allocations: 112.5 kB / 330.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002656/0.3693, allocations: 136 kB / 331 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.091e-05/0.3693, allocations: 15.59 kB / 331 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.799e-05/0.3694, allocations: 15.25 kB / 331 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.091e-05/0.3695, allocations: 62.34 kB / 331.1 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002459/0.3697, allocations: 154.4 kB / 331.2 MB, free: 14.22 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004097/0.3702, allocations: 306.8 kB / 331.5 MB, free: 13.99 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3702, allocations: 3.938 kB / 331.5 MB, free: 13.99 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3702, allocations: 0 / 331.5 MB, free: 13.99 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.3702, allocations: 0 / 331.5 MB, free: 13.99 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.001457/0.3717, allocations: 0.6076 MB / 332.1 MB, free: 13.45 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.3717, allocations: 13.47 kB / 332.2 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.3718, allocations: 32.19 kB / 332.2 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.3723, allocations: 273 kB / 332.4 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.3723, allocations: 17.16 kB / 332.5 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.473e-05/0.3724, allocations: 18.28 kB / 332.5 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007531/0.3731, allocations: 271.5 kB / 332.7 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.3732, allocations: 0 / 332.7 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.3732, allocations: 6.125 kB / 332.8 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.3732, allocations: 5.188 kB / 332.8 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009408/0.3742, allocations: 272.1 kB / 333 MB, free: 12.87 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002187/0.3764, allocations: 0.8975 MB / 333.9 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009561/0.3773, allocations: 286.3 kB / 334.2 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003916/0.3777, allocations: 116.9 kB / 334.3 MB, free: 11.9 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.14e-05/0.3778, allocations: 7.984 kB / 334.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006109/0.3784, allocations: 189.8 kB / 334.5 MB, free: 11.69 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 2.705e-06/0.3784, allocations: 0 / 334.5 MB, free: 11.69 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.002752/0.3812, allocations: 0.7566 MB / 335.3 MB, free: 10.9 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.532e-05/0.3813, allocations: 102.8 kB / 335.4 MB, free: 10.78 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003403/0.3816, allocations: 270.5 kB / 335.6 MB, free: 10.5 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.3817, allocations: 33.69 kB / 335.7 MB, free: 10.46 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.3819, allocations: 183.8 kB / 335.8 MB, free: 10.28 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.346e-05/0.3819, allocations: 39.45 kB / 335.9 MB, free: 10.24 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-05/0.382, allocations: 29.64 kB / 335.9 MB, free: 10.21 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.3822, allocations: 334.8 kB / 336.2 MB, free: 9.871 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000373/0.3825, allocations: 119.9 kB / 336.4 MB, free: 9.754 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004416/0.383, allocations: 185.4 kB / 336.5 MB, free: 9.539 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007804/0.3838, allocations: 312.2 kB / 336.8 MB, free: 9.203 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.3838, allocations: 0 / 336.8 MB, free: 9.203 MB / 270.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001408/0.3852, allocations: 491.6 kB / 337.3 MB, free: 8.707 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001972/0.3854, allocations: 181.6 kB / 337.5 MB, free: 8.492 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.3854, allocations: 0 / 337.5 MB, free: 8.492 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004766/0.3859, allocations: 88.78 kB / 337.6 MB, free: 8.402 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.3861, allocations: 47.91 kB / 337.6 MB, free: 8.355 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003079/0.3892, allocations: 1.861 MB / 339.5 MB, free: 6.352 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003896/0.3896, allocations: 63.83 kB / 339.6 MB, free: 6.289 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.3897, allocations: 8 kB / 339.6 MB, free: 6.281 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.157e-06/0.3897, allocations: 4 kB / 339.6 MB, free: 6.277 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007549/0.3905, allocations: 314.6 kB / 339.9 MB, free: 5.961 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.3905, allocations: 7.938 kB / 339.9 MB, free: 5.953 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.639e-05/0.3906, allocations: 32.84 kB / 339.9 MB, free: 5.918 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.3908, allocations: 51.97 kB / 340 MB, free: 5.867 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001049/0.3918, allocations: 1.312 MB / 341.3 MB, free: 4.422 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002958/0.3921, allocations: 47.88 kB / 341.3 MB, free: 4.375 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.3922, allocations: 8 kB / 341.3 MB, free: 4.367 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.0002649/0.3924, allocations: 217 kB / 341.5 MB, free: 4.145 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.676e-05/0.3925, allocations: 27.66 kB / 341.6 MB, free: 4.117 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.905e-05/0.3925, allocations: 25.83 kB / 341.6 MB, free: 4.098 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.3926, allocations: 0 / 341.6 MB, free: 4.098 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3926, allocations: 0 / 341.6 MB, free: 4.098 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3926, allocations: 4 kB / 341.6 MB, free: 4.094 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003172/0.3929, allocations: 297.4 kB / 341.9 MB, free: 3.754 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.3929, allocations: 7.922 kB / 341.9 MB, free: 3.746 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001349/0.3931, allocations: 23.98 kB / 341.9 MB, free: 3.723 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002722/0.3933, allocations: 88.73 kB / 342 MB, free: 3.633 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.3934, allocations: 0 / 342 MB, free: 3.633 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002339/0.3957, allocations: 1.76 MB / 343.8 MB, free: 1.738 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/0.3957, allocations: 11.91 kB / 343.8 MB, free: 1.727 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.3969, allocations: 393.4 kB / 344.2 MB, free: 1.32 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.947e-05/0.397, allocations: 100.8 kB / 344.3 MB, free: 1.203 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.397, allocations: 4 kB / 344.3 MB, free: 1.199 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002633/0.3973, allocations: 43.95 kB / 344.3 MB, free: 1.156 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.092e-05/0.3974, allocations: 15.98 kB / 344.3 MB, free: 1.141 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.3974, allocations: 11.98 kB / 344.3 MB, free: 1.129 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002286/0.3977, allocations: 190 kB / 344.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of sort global known variables: time 4.8e-07/0.3977, allocations: 0 / 344.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006233/0.3983, allocations: 119.8 kB / 344.6 MB, free: 0.8242 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.0001941/0.3985, allocations: 107.3 kB / 344.7 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.4004, allocations: 0.8093 MB / 345.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.4004, allocations: 0 / 345.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005319/0.4009, allocations: 254.9 kB / 345.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.4013, allocations: 57.25 kB / 345.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003164/0.4045, allocations: 1.061 MB / 346.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.4049, allocations: 0.7521 MB / 347.7 MB, free: 13.67 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000161/0.405, allocations: 26.28 kB / 347.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.772e-05/0.4051, allocations: 19.44 kB / 347.7 MB, free: 13.63 MB / 286.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4051, allocations: 0 / 347.7 MB, free: 13.63 MB / 286.1 MB Notification: Performance of Templates: time 0.008337/0.4135, allocations: 3.769 MB / 351.5 MB, free: 9.863 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)