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.00112/0.00112, 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.001533/0.001533, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.76/1.76, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.001433/0.001433, allocations: 47.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3242, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.005363/0.3296, allocations: 2.733 MB / 328 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001703/0.3313, allocations: 0.7171 MB / 328.8 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002006/0.3316, allocations: 4.469 kB / 328.8 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001764/0.3318, allocations: 38.98 kB / 328.8 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.332, allocations: 91.66 kB / 328.9 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003323/0.3324, allocations: 94.73 kB / 329 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004833/0.3328, allocations: 355 kB / 329.3 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000231/0.3331, allocations: 81.61 kB / 329.4 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001777/0.3333, allocations: 131.2 kB / 329.5 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.3335, allocations: 160.5 kB / 329.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.125e-05/0.3336, allocations: 29.34 kB / 329.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.268e-05/0.3336, allocations: 30 kB / 329.8 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.644e-05/0.3337, allocations: 61.23 kB / 329.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.3339, allocations: 149.5 kB / 330 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004645/0.3344, allocations: 321.9 kB / 330.3 MB, free: 14.07 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3344, allocations: 1.031 kB / 330.3 MB, free: 14.07 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3344, allocations: 3.938 kB / 330.3 MB, free: 14.06 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.3344, 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.001493/0.3359, allocations: 0.6427 MB / 330.9 MB, free: 13.48 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.336, allocations: 9.281 kB / 330.9 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.3361, allocations: 28.16 kB / 331 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.3365, allocations: 277.5 kB / 331.2 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.3365, allocations: 15.95 kB / 331.3 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.3366, allocations: 22.88 kB / 331.3 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006342/0.3372, allocations: 249.4 kB / 331.5 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.3372, allocations: 0 / 331.5 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.3373, allocations: 10.91 kB / 331.5 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.3373, allocations: 8.328 kB / 331.5 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007704/0.3381, allocations: 245.6 kB / 331.8 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.3398, allocations: 0.8776 MB / 332.7 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009078/0.3407, allocations: 235.9 kB / 332.9 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003483/0.3411, allocations: 109.3 kB / 333 MB, free: 11.99 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.3411, allocations: 1.125 kB / 333 MB, free: 11.99 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006232/0.3418, allocations: 178.5 kB / 333.2 MB, free: 11.85 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 2.104e-06/0.3418, allocations: 1 kB / 333.2 MB, free: 11.85 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.002697/0.3445, allocations: 0.6782 MB / 333.8 MB, free: 11.15 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.3446, allocations: 106.8 kB / 333.9 MB, free: 11.02 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004121/0.345, allocations: 266.6 kB / 334.2 MB, free: 10.75 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.665e-05/0.3451, allocations: 29.7 kB / 334.2 MB, free: 10.71 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.3453, allocations: 175.8 kB / 334.4 MB, free: 10.54 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.924e-05/0.3453, allocations: 47.44 kB / 334.5 MB, free: 10.49 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.3454, allocations: 49.61 kB / 334.5 MB, free: 10.44 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.3457, allocations: 338.8 kB / 334.8 MB, free: 10.1 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003676/0.346, allocations: 104.7 kB / 334.9 MB, free: 9.992 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004262/0.3465, allocations: 177.3 kB / 335.1 MB, free: 9.785 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006938/0.3472, allocations: 284.2 kB / 335.4 MB, free: 9.477 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3472, allocations: 0 / 335.4 MB, free: 9.477 MB / 270.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001271/0.3485, allocations: 451.6 kB / 335.8 MB, free: 9.02 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.859e-05/0.3485, allocations: 33.7 kB / 335.9 MB, free: 8.98 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.3485, allocations: 0 / 335.9 MB, free: 8.98 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004476/0.349, allocations: 88.77 kB / 335.9 MB, free: 8.891 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.3492, allocations: 39.91 kB / 336 MB, free: 8.852 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003227/0.3524, allocations: 2.013 MB / 338 MB, free: 6.691 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004017/0.3529, allocations: 51.81 kB / 338.1 MB, free: 6.641 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.3529, allocations: 15.94 kB / 338.1 MB, free: 6.625 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003719/0.3533, allocations: 184 kB / 338.2 MB, free: 6.441 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000333/0.3536, allocations: 153.5 kB / 338.4 MB, free: 6.258 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006012/0.3542, allocations: 253.1 kB / 338.6 MB, free: 5.977 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.963e-06/0.3543, allocations: 4 kB / 338.6 MB, free: 5.973 MB / 270.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007655/0.355, allocations: 326 kB / 339 MB, free: 5.641 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.762e-05/0.3551, allocations: 37.95 kB / 339 MB, free: 5.598 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.3551, allocations: 4 kB / 339 MB, free: 5.594 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001125/0.3552, allocations: 28.84 kB / 339 MB, free: 5.562 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.3554, allocations: 47.89 kB / 339.1 MB, free: 5.516 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.3564, allocations: 1.403 MB / 340.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.3568, allocations: 51.73 kB / 340.5 MB, free: 3.926 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.3568, allocations: 16.12 kB / 340.6 MB, free: 3.91 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.0001599/0.357, allocations: 192.7 kB / 340.7 MB, free: 3.715 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.825e-05/0.3571, allocations: 23.72 kB / 340.8 MB, free: 3.691 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.747e-05/0.3571, allocations: 29.83 kB / 340.8 MB, free: 3.664 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.3571, allocations: 144 / 340.8 MB, free: 3.664 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3571, allocations: 3.938 kB / 340.8 MB, free: 3.66 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3572, allocations: 3.984 kB / 340.8 MB, free: 3.656 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003532/0.3575, allocations: 293.4 kB / 341.1 MB, free: 3.32 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3575, allocations: 4 kB / 341.1 MB, free: 3.316 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.3577, allocations: 19.97 kB / 341.1 MB, free: 3.297 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002859/0.358, allocations: 76.8 kB / 341.2 MB, free: 3.219 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.358, allocations: 4 kB / 341.2 MB, free: 3.215 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002756/0.3608, allocations: 1.919 MB / 343.1 MB, free: 1.156 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3608, allocations: 4.062 kB / 343.1 MB, free: 1.152 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.3619, allocations: 357.5 kB / 343.5 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.362, allocations: 112.7 kB / 343.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.286e-05/0.3621, allocations: 0 / 343.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002655/0.3624, allocations: 35.95 kB / 343.6 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.122e-05/0.3625, allocations: 23.97 kB / 343.6 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.3625, allocations: 4 kB / 343.6 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002234/0.3627, allocations: 190 kB / 343.8 MB, free: 416 kB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3627, allocations: 3.938 kB / 343.8 MB, free: 412 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006446/0.3634, allocations: 119.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.0002834/0.3637, allocations: 111.2 kB / 344 MB, free: 172 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.00208/0.3658, allocations: 0.7696 MB / 344.8 MB, free: 15.35 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.3658, allocations: 256 / 344.8 MB, free: 15.35 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005413/0.3663, allocations: 230.6 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.0004117/0.3668, allocations: 40.55 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.003381/0.3701, allocations: 0.9069 MB / 346 MB, free: 14.14 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007615/0.3709, allocations: 0.7483 MB / 346.7 MB, free: 13.36 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002015/0.3711, allocations: 30.31 kB / 346.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.848e-05/0.3712, allocations: 19.44 kB / 346.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of SimCode: time 1.363e-06/0.3712, allocations: 0 / 346.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of Templates: time 0.01138/0.3826, allocations: 4.138 MB / 350.9 MB, free: 9.172 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)