Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001085/0.001085, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001104/0.001104, allocations: 191.4 kB / 16.25 MB, free: 6.625 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.965/1.965, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.002523/0.002523, allocations: 55.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.545/0.5476, allocations: 46.62 MB / 324.9 MB, free: 1.957 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.006279/0.5539, allocations: 2.775 MB / 327.6 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002118/0.5561, allocations: 0.7062 MB / 328.3 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002538/0.5564, allocations: 7.594 kB / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002837/0.5568, allocations: 31.55 kB / 328.4 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.557, allocations: 76.33 kB / 328.5 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004269/0.5574, allocations: 82.45 kB / 328.5 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006944/0.5582, allocations: 355.2 kB / 328.9 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003142/0.5585, allocations: 80.58 kB / 329 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.5588, allocations: 135.3 kB / 329.1 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002873/0.5591, allocations: 150.8 kB / 329.2 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.848e-05/0.5592, allocations: 29.75 kB / 329.3 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.266e-05/0.5592, allocations: 29.44 kB / 329.3 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.584e-05/0.5594, allocations: 66.55 kB / 329.4 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002208/0.5596, allocations: 154.1 kB / 329.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004876/0.5601, allocations: 325.8 kB / 329.8 MB, free: 14.17 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.5601, allocations: 0 / 329.8 MB, free: 14.17 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5601, allocations: 0 / 329.8 MB, free: 14.17 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.5601, allocations: 1.375 kB / 329.8 MB, free: 14.17 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.00156/0.5617, allocations: 0.6414 MB / 330.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.983e-05/0.5618, allocations: 9.469 kB / 330.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.756e-05/0.5619, allocations: 27.22 kB / 330.5 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004005/0.5623, allocations: 276.5 kB / 330.8 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.5623, allocations: 20.98 kB / 330.8 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.386e-05/0.5624, allocations: 17.94 kB / 330.8 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006944/0.5631, allocations: 250.1 kB / 331.1 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.5631, allocations: 1.281 kB / 331.1 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.006e-05/0.5631, allocations: 5.219 kB / 331.1 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.5632, allocations: 9.297 kB / 331.1 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007697/0.5639, allocations: 241.7 kB / 331.3 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.5658, allocations: 0.8785 MB / 332.2 MB, free: 12.28 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009653/0.5668, allocations: 243.1 kB / 332.4 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003525/0.5671, allocations: 101 kB / 332.5 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.703e-05/0.5672, allocations: 1.531 kB / 332.5 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006308/0.5678, allocations: 187 kB / 332.7 MB, free: 11.96 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.5678, allocations: 0 / 332.7 MB, free: 11.96 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.002448/0.5703, allocations: 0.672 MB / 333.4 MB, free: 11.34 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.028e-05/0.5704, allocations: 102.8 kB / 333.5 MB, free: 11.22 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003301/0.5707, allocations: 266.6 kB / 333.7 MB, free: 10.95 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.5708, allocations: 29.7 kB / 333.8 MB, free: 10.91 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.5709, allocations: 175.8 kB / 333.9 MB, free: 10.74 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.684e-05/0.571, allocations: 43.45 kB / 334 MB, free: 10.7 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.461e-05/0.5711, allocations: 49.64 kB / 334 MB, free: 10.64 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.5712, allocations: 330.8 kB / 334.4 MB, free: 10.31 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003359/0.5716, allocations: 100.8 kB / 334.5 MB, free: 10.21 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003756/0.572, allocations: 163.6 kB / 334.6 MB, free: 10.02 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006811/0.5727, allocations: 262.5 kB / 334.9 MB, free: 9.738 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.5727, allocations: 0 / 334.9 MB, free: 9.738 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001131/0.5738, allocations: 439.5 kB / 335.3 MB, free: 9.293 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.417e-05/0.5739, allocations: 33.7 kB / 335.3 MB, free: 9.254 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.5739, allocations: 0 / 335.3 MB, free: 9.254 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004508/0.5744, allocations: 76.8 kB / 335.4 MB, free: 9.176 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.5746, allocations: 43.94 kB / 335.5 MB, free: 9.133 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002856/0.5774, allocations: 1.966 MB / 337.4 MB, free: 7.02 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003433/0.5778, allocations: 51.86 kB / 337.5 MB, free: 6.969 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.5778, allocations: 12 kB / 337.5 MB, free: 6.957 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003437/0.5782, allocations: 176.2 kB / 337.7 MB, free: 6.781 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002961/0.5785, allocations: 143.7 kB / 337.8 MB, free: 6.613 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005064/0.579, allocations: 229.8 kB / 338 MB, free: 6.363 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.858e-06/0.579, allocations: 3.938 kB / 338 MB, free: 6.359 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0008582/0.5799, allocations: 323.5 kB / 338.3 MB, free: 6.027 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.379e-05/0.5799, allocations: 29.7 kB / 338.4 MB, free: 5.992 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-06/0.58, allocations: 4 kB / 338.4 MB, free: 5.988 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001151/0.5801, allocations: 37.02 kB / 338.4 MB, free: 5.949 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/0.5803, allocations: 39.97 kB / 338.4 MB, free: 5.91 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/0.582, allocations: 1.611 MB / 340.1 MB, free: 4.164 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.5823, allocations: 43.81 kB / 340.1 MB, free: 4.121 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.5823, allocations: 4 kB / 340.1 MB, free: 4.117 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.0002644/0.5826, allocations: 200.3 kB / 340.3 MB, free: 3.914 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.398e-05/0.5827, allocations: 19.72 kB / 340.3 MB, free: 3.895 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.1e-05/0.5827, allocations: 25.83 kB / 340.3 MB, free: 3.871 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.5827, allocations: 0 / 340.3 MB, free: 3.871 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.5827, allocations: 0 / 340.3 MB, free: 3.871 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.5828, allocations: 4 kB / 340.4 MB, free: 3.867 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003788/0.5831, allocations: 297.4 kB / 340.6 MB, free: 3.527 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.5831, allocations: 0 / 340.6 MB, free: 3.527 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.5833, allocations: 27.91 kB / 340.7 MB, free: 3.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002518/0.5836, allocations: 76.81 kB / 340.7 MB, free: 3.422 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.5836, allocations: 3.984 kB / 340.7 MB, free: 3.418 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002437/0.586, allocations: 1.766 MB / 342.5 MB, free: 1.512 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.586, allocations: 0 / 342.5 MB, free: 1.512 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.5871, allocations: 353.5 kB / 342.9 MB, free: 1.145 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.504e-05/0.5872, allocations: 104.8 kB / 343 MB, free: 1.023 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.804e-05/0.5872, allocations: 8 kB / 343 MB, free: 1.016 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.5874, allocations: 27.95 kB / 343 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.5876, allocations: 19.98 kB / 343 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.5876, allocations: 11.92 kB / 343 MB, free: 0.957 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002489/0.5878, allocations: 190 kB / 343.2 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5878, allocations: 4 kB / 343.2 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005788/0.5884, allocations: 115.8 kB / 343.3 MB, free: 0.6523 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.0002411/0.5887, allocations: 107.9 kB / 343.4 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.5903, allocations: 0.6878 MB / 344.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5903, allocations: 0 / 344.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004797/0.5908, allocations: 238.6 kB / 344.4 MB, free: 15.55 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.5912, allocations: 44.47 kB / 344.4 MB, free: 15.51 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.5924, allocations: 0.5282 MB / 344.9 MB, free: 14.96 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005257/0.5929, allocations: 0.7483 MB / 345.7 MB, free: 14.18 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.5931, allocations: 26.28 kB / 345.7 MB, free: 14.16 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.021e-05/0.5931, allocations: 19.44 kB / 345.7 MB, free: 14.14 MB / 286.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5931, allocations: 0 / 345.7 MB, free: 14.14 MB / 286.1 MB Notification: Performance of Templates: time 0.009764/0.6029, allocations: 4.092 MB / 349.8 MB, free: 10.05 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1)