Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009407/0.0009407, 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.007367/0.007368, allocations: 169.5 kB / 16.27 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.117/2.117, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0005715/0.000572, allocations: 12 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3778, allocations: 47.58 MB / 327 MB, free: 1.371 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.00391/0.3817, allocations: 2.404 MB / 329.4 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002142/0.3839, allocations: 0.7064 MB / 330.2 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004785/0.3844, allocations: 5.031 kB / 330.2 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002193/0.3847, allocations: 34.38 kB / 330.2 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000444/0.3851, allocations: 76.77 kB / 330.3 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004453/0.3856, allocations: 90.97 kB / 330.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004815/0.3861, allocations: 328.5 kB / 330.7 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002723/0.3864, allocations: 70.17 kB / 330.7 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.3866, allocations: 112.4 kB / 330.9 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002442/0.3869, allocations: 143.2 kB / 331 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.501e-05/0.3869, allocations: 15.91 kB / 331 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.129e-05/0.387, allocations: 14.19 kB / 331 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.908e-05/0.3871, allocations: 50.42 kB / 331.1 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.3873, allocations: 154.9 kB / 331.2 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004207/0.3877, allocations: 310.5 kB / 331.5 MB, free: 13.93 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3877, allocations: 0 / 331.5 MB, free: 13.93 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3878, allocations: 0.9375 kB / 331.5 MB, free: 13.93 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.3878, 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.001561/0.3893, allocations: 0.6104 MB / 332.1 MB, free: 13.39 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.3894, allocations: 9.719 kB / 332.1 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.659e-05/0.3895, allocations: 31.44 kB / 332.2 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004147/0.3899, allocations: 273.5 kB / 332.4 MB, free: 13.1 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.39, allocations: 16.22 kB / 332.5 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.064e-05/0.39, allocations: 18.53 kB / 332.5 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000738/0.3908, allocations: 271 kB / 332.7 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.3908, allocations: 1.125 kB / 332.7 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.3908, allocations: 6.156 kB / 332.7 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.679e-06/0.3908, allocations: 4.812 kB / 332.8 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008515/0.3917, allocations: 276.1 kB / 333 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.3935, allocations: 0.8934 MB / 333.9 MB, free: 12.07 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.3945, allocations: 283.8 kB / 334.2 MB, free: 11.93 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004138/0.3949, allocations: 114.9 kB / 334.3 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.254e-05/0.395, allocations: 2.281 kB / 334.3 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006503/0.3956, allocations: 205.7 kB / 334.5 MB, free: 11.68 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 4.959e-06/0.3957, allocations: 3.984 kB / 334.5 MB, free: 11.67 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.002681/0.3983, allocations: 0.7566 MB / 335.3 MB, free: 10.89 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.706e-05/0.3984, allocations: 102.8 kB / 335.4 MB, free: 10.76 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003495/0.3988, allocations: 266.6 kB / 335.6 MB, free: 10.49 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.2e-05/0.3988, allocations: 25.7 kB / 335.7 MB, free: 10.46 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.399, allocations: 179.8 kB / 335.8 MB, free: 10.28 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.817e-05/0.3991, allocations: 47.45 kB / 335.9 MB, free: 10.23 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.237e-05/0.3991, allocations: 21.66 kB / 335.9 MB, free: 10.21 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.3993, allocations: 334.8 kB / 336.2 MB, free: 9.871 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003758/0.3997, allocations: 115.9 kB / 336.3 MB, free: 9.758 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000406/0.4001, allocations: 175.6 kB / 336.5 MB, free: 9.559 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007377/0.4009, allocations: 286.5 kB / 336.8 MB, free: 9.254 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.4009, allocations: 4 kB / 336.8 MB, free: 9.25 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001342/0.4022, allocations: 471.7 kB / 337.3 MB, free: 8.773 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001452/0.4024, allocations: 167.8 kB / 337.4 MB, free: 8.578 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.4024, allocations: 0 / 337.4 MB, free: 8.578 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000428/0.4029, allocations: 92.73 kB / 337.5 MB, free: 8.484 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.4031, allocations: 43.95 kB / 337.6 MB, free: 8.441 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002684/0.4058, allocations: 1.811 MB / 339.4 MB, free: 6.488 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004298/0.4062, allocations: 55.86 kB / 339.4 MB, free: 6.434 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/0.4063, allocations: 12 kB / 339.4 MB, free: 6.422 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.4063, allocations: 0 / 339.4 MB, free: 6.422 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007619/0.4071, allocations: 310.1 kB / 339.7 MB, free: 6.109 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.4071, allocations: 4 kB / 339.7 MB, free: 6.105 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.702e-05/0.4072, allocations: 28.83 kB / 339.8 MB, free: 6.074 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.4074, allocations: 48.25 kB / 339.8 MB, free: 6.027 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001206/0.4086, allocations: 1.432 MB / 341.2 MB, free: 4.461 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003504/0.4089, allocations: 47.75 kB / 341.3 MB, free: 4.414 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.409, allocations: 15.94 kB / 341.3 MB, free: 4.398 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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.0002752/0.4093, allocations: 217.1 kB / 341.5 MB, free: 4.176 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.464e-05/0.4093, allocations: 23.72 kB / 341.5 MB, free: 4.152 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.707e-05/0.4094, allocations: 25.83 kB / 341.6 MB, free: 4.133 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.4094, allocations: 4 kB / 341.6 MB, free: 4.129 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4094, allocations: 0 / 341.6 MB, free: 4.129 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.4094, allocations: 3.938 kB / 341.6 MB, free: 4.125 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003208/0.4097, allocations: 285.4 kB / 341.9 MB, free: 3.797 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.4097, allocations: 4 kB / 341.9 MB, free: 3.793 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001477/0.4099, allocations: 31.97 kB / 341.9 MB, free: 3.762 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003111/0.4102, allocations: 84.73 kB / 342 MB, free: 3.676 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.4102, allocations: 4 kB / 342 MB, free: 3.672 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002289/0.4125, allocations: 1.659 MB / 343.6 MB, free: 1.879 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.4126, allocations: 0 / 343.6 MB, free: 1.879 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.4137, allocations: 397.5 kB / 344 MB, free: 1.469 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.4138, allocations: 100.8 kB / 344.1 MB, free: 1.352 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.753e-05/0.4139, allocations: 11.94 kB / 344.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002625/0.4141, allocations: 43.95 kB / 344.2 MB, free: 1.297 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.4143, allocations: 23.97 kB / 344.2 MB, free: 1.273 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.4143, allocations: 4 kB / 344.2 MB, free: 1.27 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000199/0.4145, allocations: 190 kB / 344.4 MB, free: 1.082 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4145, allocations: 4 kB / 344.4 MB, free: 1.078 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005941/0.4151, allocations: 115.8 kB / 344.5 MB, free: 0.9648 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.0001819/0.4153, allocations: 115.2 kB / 344.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.417, allocations: 0.7189 MB / 345.3 MB, free: 76 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.417, allocations: 0 / 345.3 MB, free: 76 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005557/0.4176, allocations: 258.8 kB / 345.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.418, allocations: 40.48 kB / 345.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.4193, allocations: 0.5528 MB / 346.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.4198, allocations: 0.7483 MB / 346.9 MB, free: 14.42 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001463/0.4199, allocations: 30.22 kB / 347 MB, free: 14.39 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.371e-05/0.42, allocations: 15.44 kB / 347 MB, free: 14.38 MB / 286.1 MB Notification: Performance of SimCode: time 8.21e-07/0.42, allocations: 0 / 347 MB, free: 14.38 MB / 286.1 MB Notification: Performance of Templates: time 0.009182/0.4292, allocations: 3.818 MB / 350.8 MB, free: 10.56 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1)