Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001829/0.001829, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.002195/0.002195, allocations: 198.9 kB / 18 MB, free: 5.082 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.93/1.93, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.00146/0.00146, allocations: 51.92 kB / 327.9 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1503, allocations: 46.61 MB / 374.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004561/0.1549, allocations: 2.718 MB / 377.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001568/0.1565, allocations: 0.7212 MB / 378 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.1567, allocations: 4 kB / 378 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.1569, allocations: 43.52 kB / 378 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.1571, allocations: 95.25 kB / 378.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.1574, allocations: 91.81 kB / 378.2 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004247/0.1579, allocations: 362.5 kB / 378.5 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.1581, allocations: 84.69 kB / 378.6 MB, free: 424 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001832/0.1583, allocations: 131.5 kB / 378.7 MB, free: 292 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000235/0.1585, allocations: 155.3 kB / 378.9 MB, free: 136 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.604e-05/0.1586, allocations: 28 kB / 378.9 MB, free: 108 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.949e-05/0.1586, allocations: 32 kB / 379 MB, free: 76 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.574e-05/0.1587, allocations: 67.69 kB / 379 MB, free: 8 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.333/0.4917, allocations: 141.3 kB / 379.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007956/0.4926, allocations: 327.2 kB / 379.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.4926, allocations: 0 / 379.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.4926, allocations: 0 / 379.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.4927, allocations: 0 / 379.5 MB, free: 10.08 MB / 318.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.00183/0.4945, allocations: 0.6387 MB / 380.1 MB, free: 9.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.368e-05/0.4946, allocations: 10.66 kB / 380.1 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.4947, allocations: 32.19 kB / 380.2 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007277/0.4955, allocations: 285.8 kB / 380.4 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.59e-05/0.4955, allocations: 15.62 kB / 380.5 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.277e-05/0.4956, allocations: 20.53 kB / 380.5 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009963/0.4966, allocations: 246.6 kB / 380.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.4966, allocations: 3.938 kB / 380.7 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.818e-05/0.4967, allocations: 9 kB / 380.7 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.4967, allocations: 4.766 kB / 380.7 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.4979, allocations: 246 kB / 381 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002784/0.5007, allocations: 0.8681 MB / 381.8 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.5022, allocations: 245.8 kB / 382.1 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005677/0.5028, allocations: 101 kB / 382.2 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.019e-05/0.5029, allocations: 5.75 kB / 382.2 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007798/0.5037, allocations: 180.3 kB / 382.4 MB, free: 8.812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.454e-06/0.5037, allocations: 1.344 kB / 382.4 MB, free: 8.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.003747/0.5074, allocations: 0.6717 MB / 383 MB, free: 8.645 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.001e-05/0.5075, allocations: 118.7 kB / 383.1 MB, free: 8.516 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005102/0.5081, allocations: 263.3 kB / 383.4 MB, free: 8.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.5081, allocations: 31.94 kB / 383.4 MB, free: 8.379 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.5083, allocations: 179.8 kB / 383.6 MB, free: 8.258 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.012e-05/0.5083, allocations: 37.59 kB / 383.6 MB, free: 8.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.5085, allocations: 51.27 kB / 383.7 MB, free: 8.215 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.5086, allocations: 334.2 kB / 384 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005424/0.5092, allocations: 107.5 kB / 384.1 MB, free: 7.887 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000615/0.5098, allocations: 176.1 kB / 384.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.5109, allocations: 283.1 kB / 384.6 MB, free: 7.684 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.5109, allocations: 4 kB / 384.6 MB, free: 7.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001953/0.5128, allocations: 449.1 kB / 385 MB, free: 7.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.022e-05/0.5129, allocations: 35.58 kB / 385.1 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.513, allocations: 3.625 kB / 385.1 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000623/0.5136, allocations: 80.3 kB / 385.1 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003155/0.5139, allocations: 42.98 kB / 385.2 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004377/0.5183, allocations: 2.018 MB / 387.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005601/0.5189, allocations: 50.27 kB / 387.2 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.164e-05/0.519, allocations: 9.828 kB / 387.3 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005656/0.5195, allocations: 185.9 kB / 387.4 MB, free: 5.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000537/0.5201, allocations: 156.5 kB / 387.6 MB, free: 5.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008651/0.521, allocations: 243.3 kB / 387.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.934e-06/0.521, allocations: 1.219 kB / 387.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.001301/0.5223, allocations: 329.3 kB / 388.2 MB, free: 5.535 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.01e-05/0.5224, allocations: 42.11 kB / 388.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.5224, allocations: 2.344 kB / 388.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001455/0.5225, allocations: 23.66 kB / 388.2 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003071/0.5229, allocations: 52.31 kB / 388.3 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/0.524, allocations: 1.412 MB / 389.7 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.5245, allocations: 47.66 kB / 389.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.5246, allocations: 7.641 kB / 389.7 MB, free: 4.055 MB / 318.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.0001833/0.5248, allocations: 194.9 kB / 389.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-05/0.5248, allocations: 19.91 kB / 389.9 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.193e-05/0.5249, allocations: 30.31 kB / 390 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.5249, allocations: 2.594 kB / 390 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.525, allocations: 3.938 kB / 390 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.525, allocations: 4.734 kB / 390 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005175/0.5255, allocations: 299.6 kB / 390.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.5255, allocations: 1.094 kB / 390.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.5257, allocations: 24.84 kB / 390.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004251/0.5261, allocations: 79.3 kB / 390.4 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.5262, allocations: 1.516 kB / 390.4 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003292/0.5295, allocations: 1.915 MB / 392.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.5295, allocations: 0 / 392.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.5311, allocations: 365.2 kB / 392.7 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.5313, allocations: 109.3 kB / 392.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.148e-05/0.5314, allocations: 4.812 kB / 392.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003949/0.5318, allocations: 37.09 kB / 392.8 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.5319, allocations: 19.42 kB / 392.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/0.532, allocations: 4.719 kB / 392.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003468/0.5323, allocations: 198.8 kB / 393 MB, free: 1.543 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.5323, allocations: 0 / 393 MB, free: 1.543 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001055/0.5334, allocations: 120.1 kB / 393.1 MB, free: 1.523 MB / 318.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.0002196/0.5336, allocations: 109.5 kB / 393.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002688/0.5363, allocations: 0.7526 MB / 394 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/0.5364, allocations: 5.25 kB / 394 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006833/0.5371, allocations: 229.4 kB / 394.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005343/0.5376, allocations: 52.7 kB / 394.3 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004998/0.5426, allocations: 0.8957 MB / 395.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005796/0.5432, allocations: 0.7472 MB / 395.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002553/0.5435, allocations: 31.55 kB / 396 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.5436, allocations: 22.67 kB / 396 MB, free: 15.81 MB / 334.1 MB Notification: Performance of SimCode: time 2.35e-05/0.5437, allocations: 0 / 396 MB, free: 15.81 MB / 334.1 MB Notification: Performance of Templates: time 0.02028/0.564, allocations: 4.332 MB / 400.3 MB, free: 14.95 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)