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.00129/0.001289, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002414/0.002414, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.857/1.857, allocations: 205.1 MB / 222 MB, free: 4.949 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.001809/0.001809, allocations: 47.92 kB / 278.1 MB, free: 12.99 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4207/0.4226, allocations: 46.63 MB / 324.7 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.005732/0.4284, allocations: 2.767 MB / 327.5 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.4303, allocations: 0.7115 MB / 328.2 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002092/0.4306, allocations: 4.312 kB / 328.2 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002414/0.4309, allocations: 35.23 kB / 328.2 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002314/0.4311, allocations: 76.62 kB / 328.3 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.4315, allocations: 82.83 kB / 328.4 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005482/0.432, allocations: 344 kB / 328.7 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003066/0.4324, allocations: 70.48 kB / 328.8 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002457/0.4326, allocations: 118 kB / 328.9 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002587/0.4329, allocations: 139.5 kB / 329 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.901e-05/0.433, allocations: 19.44 kB / 329 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.124e-05/0.433, allocations: 17.47 kB / 329.1 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.673e-05/0.4331, allocations: 58.5 kB / 329.1 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002221/0.4334, allocations: 137.7 kB / 329.3 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004167/0.4338, allocations: 309.9 kB / 329.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.4338, allocations: 4 kB / 329.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4338, allocations: 1.406 kB / 329.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.4338, allocations: 0 / 329.6 MB, free: 14.11 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.0016/0.4354, allocations: 0.6374 MB / 330.2 MB, free: 13.54 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.137e-05/0.4355, allocations: 9.531 kB / 330.2 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.4356, allocations: 27.88 kB / 330.2 MB, free: 13.53 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00051/0.4362, allocations: 276 kB / 330.5 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.32e-05/0.4362, allocations: 21.89 kB / 330.5 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.355e-05/0.4363, allocations: 21.94 kB / 330.5 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008035/0.4371, allocations: 249.3 kB / 330.8 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.4371, allocations: 1.406 kB / 330.8 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.717e-05/0.4372, allocations: 9.281 kB / 330.8 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.4372, allocations: 9.422 kB / 330.8 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008744/0.4381, allocations: 241.8 kB / 331 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.4402, allocations: 0.8739 MB / 331.9 MB, free: 12.22 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.4413, allocations: 238.7 kB / 332.2 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003941/0.4417, allocations: 105.9 kB / 332.3 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.4417, allocations: 2.094 kB / 332.3 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007696/0.4425, allocations: 175 kB / 332.4 MB, free: 11.91 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 2.265e-06/0.4425, allocations: 0 / 332.4 MB, free: 11.91 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.002701/0.4452, allocations: 0.6834 MB / 333.1 MB, free: 11.52 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.032e-05/0.4453, allocations: 102.8 kB / 333.2 MB, free: 11.39 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003323/0.4457, allocations: 270.5 kB / 333.5 MB, free: 11.12 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.4457, allocations: 33.7 kB / 333.5 MB, free: 11.08 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.4459, allocations: 175.8 kB / 333.7 MB, free: 10.9 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.197e-05/0.4459, allocations: 43.45 kB / 333.7 MB, free: 10.86 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.954e-05/0.446, allocations: 45.64 kB / 333.8 MB, free: 10.81 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002279/0.4463, allocations: 334.8 kB / 334.1 MB, free: 10.47 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000367/0.4466, allocations: 100.8 kB / 334.2 MB, free: 10.37 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003949/0.447, allocations: 167.6 kB / 334.4 MB, free: 10.18 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007191/0.4478, allocations: 262.5 kB / 334.6 MB, free: 9.898 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.4478, allocations: 4 kB / 334.6 MB, free: 9.895 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001226/0.449, allocations: 431.8 kB / 335 MB, free: 9.457 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.489e-05/0.4491, allocations: 37.7 kB / 335.1 MB, free: 9.414 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.4491, allocations: 7.969 kB / 335.1 MB, free: 9.406 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004593/0.4496, allocations: 72.8 kB / 335.2 MB, free: 9.332 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.4498, allocations: 39.97 kB / 335.2 MB, free: 9.293 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002874/0.4527, allocations: 1.771 MB / 337 MB, free: 7.379 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000354/0.4531, allocations: 47.75 kB / 337 MB, free: 7.332 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.4531, allocations: 7.984 kB / 337 MB, free: 7.324 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003377/0.4534, allocations: 184.1 kB / 337.2 MB, free: 7.141 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002873/0.4537, allocations: 131.7 kB / 337.3 MB, free: 6.984 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005064/0.4543, allocations: 225.9 kB / 337.5 MB, free: 6.738 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.263e-06/0.4543, allocations: 7.938 kB / 337.6 MB, free: 6.73 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0007428/0.455, allocations: 323.5 kB / 337.9 MB, free: 6.398 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/0.4551, allocations: 29.7 kB / 337.9 MB, free: 6.363 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.4551, allocations: 8.312 kB / 337.9 MB, free: 6.355 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001038/0.4552, allocations: 28.84 kB / 337.9 MB, free: 6.324 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.4554, allocations: 43.91 kB / 338 MB, free: 6.281 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.4566, allocations: 1.436 MB / 339.4 MB, free: 4.715 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002915/0.4569, allocations: 44.03 kB / 339.5 MB, free: 4.672 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.4569, allocations: 4 kB / 339.5 MB, free: 4.668 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.0001633/0.4571, allocations: 200.2 kB / 339.7 MB, free: 4.465 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.671e-05/0.4572, allocations: 31.64 kB / 339.7 MB, free: 4.434 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.967e-05/0.4572, allocations: 21.84 kB / 339.7 MB, free: 4.414 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.4572, allocations: 4 kB / 339.7 MB, free: 4.41 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.4572, allocations: 0 / 339.7 MB, free: 4.41 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.4572, allocations: 3.984 kB / 339.7 MB, free: 4.406 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003188/0.4576, allocations: 293.4 kB / 340 MB, free: 4.07 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.4576, allocations: 0 / 340 MB, free: 4.07 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/0.4577, allocations: 31.91 kB / 340 MB, free: 4.039 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002532/0.458, allocations: 72.8 kB / 340.1 MB, free: 3.965 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.458, allocations: 7.938 kB / 340.1 MB, free: 3.957 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/0.4601, allocations: 1.628 MB / 341.7 MB, free: 2.195 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.4601, allocations: 3.984 kB / 341.7 MB, free: 2.191 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.4612, allocations: 357.5 kB / 342.1 MB, free: 1.82 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.172e-05/0.4613, allocations: 104.8 kB / 342.2 MB, free: 1.699 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.742e-05/0.4613, allocations: 3.938 kB / 342.2 MB, free: 1.695 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.4616, allocations: 39.95 kB / 342.2 MB, free: 1.656 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.885e-05/0.4617, allocations: 15.98 kB / 342.3 MB, free: 1.641 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.4617, allocations: 11.92 kB / 342.3 MB, free: 1.629 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002077/0.4619, allocations: 193.9 kB / 342.5 MB, free: 1.438 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4619, allocations: 0 / 342.5 MB, free: 1.438 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005678/0.4625, allocations: 115.8 kB / 342.6 MB, free: 1.324 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.0002691/0.4628, allocations: 103.2 kB / 342.7 MB, free: 1.215 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.4643, allocations: 0.6837 MB / 343.4 MB, free: 492 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4643, allocations: 0 / 343.4 MB, free: 492 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004446/0.4648, allocations: 222.9 kB / 343.6 MB, free: 256 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.4652, allocations: 48.52 kB / 343.6 MB, free: 208 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.4663, allocations: 0.5339 MB / 344.2 MB, free: 15.64 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.4667, allocations: 0.7483 MB / 344.9 MB, free: 14.87 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.4669, allocations: 26.28 kB / 344.9 MB, free: 14.84 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.213e-05/0.4669, allocations: 19.44 kB / 344.9 MB, free: 14.83 MB / 286.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4669, allocations: 0 / 344.9 MB, free: 14.83 MB / 286.1 MB Notification: Performance of Templates: time 0.00839/0.4753, allocations: 3.855 MB / 348.8 MB, free: 10.98 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)