Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.Comparator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008801/0.00088, allocations: 97.48 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.006385/0.006386, allocations: 169.6 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 1.99/1.99, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.000565/0.000565, allocations: 12 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.404/0.4045, allocations: 47.6 MB / 327 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00326/0.4079, allocations: 2.52 MB / 329.6 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.4096, allocations: 0.7263 MB / 330.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.4098, allocations: 4.562 kB / 330.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.41, allocations: 40.75 kB / 330.3 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002121/0.4102, allocations: 79.66 kB / 330.4 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003253/0.4105, allocations: 93.44 kB / 330.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005716/0.4111, allocations: 380.9 kB / 330.9 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003136/0.4114, allocations: 104.5 kB / 331 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.4116, allocations: 124.3 kB / 331.1 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002592/0.4119, allocations: 156.3 kB / 331.3 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.43e-05/0.412, allocations: 18.94 kB / 331.3 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.28e-05/0.412, allocations: 19.03 kB / 331.3 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.333e-05/0.4121, allocations: 59.78 kB / 331.4 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.4124, allocations: 172.9 kB / 331.5 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004534/0.4128, allocations: 374.4 kB / 331.9 MB, free: 13.71 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.385e-06/0.4129, allocations: 5.812 kB / 331.9 MB, free: 13.71 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.4129, allocations: 0 / 331.9 MB, free: 13.71 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.4129, allocations: 4 kB / 331.9 MB, free: 13.7 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001515/0.4144, allocations: 0.6479 MB / 332.5 MB, free: 13.14 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.818e-05/0.4145, allocations: 9.719 kB / 332.6 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.661e-05/0.4146, allocations: 32.31 kB / 332.6 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004639/0.4151, allocations: 303.5 kB / 332.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.604e-05/0.4151, allocations: 15.31 kB / 332.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-05/0.4152, allocations: 25.19 kB / 332.9 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007733/0.4159, allocations: 306 kB / 333.2 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.416, allocations: 0 / 333.2 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.467e-05/0.416, allocations: 10.09 kB / 333.2 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.416, allocations: 6.688 kB / 333.2 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009813/0.417, allocations: 320 kB / 333.5 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.4191, allocations: 1.071 MB / 334.6 MB, free: 11.58 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000815/0.4199, allocations: 250.4 kB / 334.9 MB, free: 11.33 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/0.4202, allocations: 100.8 kB / 335 MB, free: 11.23 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.4203, allocations: 0 / 335 MB, free: 11.23 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005103/0.4208, allocations: 165 kB / 335.1 MB, free: 11.05 MB / 270.1 MB Notification: Performance of pre-optimization done (n=11): time 1.502e-06/0.4208, allocations: 0 / 335.1 MB, free: 11.05 MB / 270.1 MB Notification: Performance of matching and sorting (n=11): time 0.00143/0.4222, allocations: 451 kB / 335.6 MB, free: 10.58 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.725e-05/0.4223, allocations: 89.09 kB / 335.7 MB, free: 10.47 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004446/0.4228, allocations: 320.5 kB / 336 MB, free: 10.15 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.432e-05/0.4228, allocations: 29.7 kB / 336 MB, free: 10.11 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001863/0.423, allocations: 207.5 kB / 336.2 MB, free: 9.906 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.046e-05/0.4231, allocations: 35.55 kB / 336.2 MB, free: 9.871 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.942e-05/0.4231, allocations: 29.7 kB / 336.3 MB, free: 9.836 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.4233, allocations: 334.8 kB / 336.6 MB, free: 9.5 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003492/0.4237, allocations: 116.1 kB / 336.7 MB, free: 9.387 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003806/0.4241, allocations: 210.8 kB / 336.9 MB, free: 9.133 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007116/0.4248, allocations: 355.1 kB / 337.3 MB, free: 8.73 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.4248, allocations: 384 / 337.3 MB, free: 8.73 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009313/0.4258, allocations: 415.7 kB / 337.7 MB, free: 8.309 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001828/0.4259, allocations: 231.6 kB / 337.9 MB, free: 8.023 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.426, allocations: 4 kB / 337.9 MB, free: 8.02 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001917/0.4262, allocations: 28.78 kB / 337.9 MB, free: 7.988 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002693/0.4264, allocations: 79.88 kB / 338 MB, free: 7.91 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.4276, allocations: 1.296 MB / 339.3 MB, free: 6.484 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003747/0.428, allocations: 63.59 kB / 339.4 MB, free: 6.422 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.008e-05/0.4281, allocations: 15.98 kB / 339.4 MB, free: 6.406 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.524e-06/0.4281, allocations: 4 kB / 339.4 MB, free: 6.402 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007796/0.4289, allocations: 342.5 kB / 339.7 MB, free: 6.059 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.4289, allocations: 8 kB / 339.7 MB, free: 6.051 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.803e-05/0.429, allocations: 32.91 kB / 339.7 MB, free: 6.016 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.4292, allocations: 59.89 kB / 339.8 MB, free: 5.957 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/0.4303, allocations: 1.284 MB / 341.1 MB, free: 4.535 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000306/0.4306, allocations: 55.64 kB / 341.1 MB, free: 4.48 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.748e-05/0.4306, allocations: 8 kB / 341.2 MB, free: 4.473 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (27): * Single equations (assignments): 25 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002833/0.4309, allocations: 229.1 kB / 341.4 MB, free: 4.238 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.994e-05/0.431, allocations: 27.7 kB / 341.4 MB, free: 4.211 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.34e-05/0.431, allocations: 25.89 kB / 341.4 MB, free: 4.184 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.431, allocations: 4 kB / 341.4 MB, free: 4.18 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.4311, allocations: 3.938 kB / 341.4 MB, free: 4.176 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.4311, allocations: 0 / 341.4 MB, free: 4.176 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005105/0.4316, allocations: 459.1 kB / 341.9 MB, free: 3.668 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4316, allocations: 0 / 341.9 MB, free: 3.668 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001638/0.4318, allocations: 40 kB / 341.9 MB, free: 3.629 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000102/0.4319, allocations: 28.78 kB / 342 MB, free: 3.598 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.4319, allocations: 0 / 342 MB, free: 3.598 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009904/0.4329, allocations: 1.3 MB / 343.3 MB, free: 2.164 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.4329, allocations: 0 / 343.3 MB, free: 2.164 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007315/0.4337, allocations: 302.4 kB / 343.5 MB, free: 1.844 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.311e-05/0.4337, allocations: 108.8 kB / 343.7 MB, free: 1.719 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.4338, allocations: 8 kB / 343.7 MB, free: 1.711 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.434, allocations: 27.97 kB / 343.7 MB, free: 1.684 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.22e-05/0.4341, allocations: 19.97 kB / 343.7 MB, free: 1.664 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.4341, allocations: 8 kB / 343.7 MB, free: 1.656 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000258/0.4344, allocations: 231 kB / 343.9 MB, free: 1.434 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4344, allocations: 4 kB / 343.9 MB, free: 1.43 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005443/0.4349, allocations: 119.8 kB / 344.1 MB, free: 1.312 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (10): * Single equations (assignments): 7 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00016/0.4351, allocations: 115.2 kB / 344.2 MB, free: 1.191 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001469/0.4366, allocations: 0.7355 MB / 344.9 MB, free: 416 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4366, allocations: 0 / 344.9 MB, free: 416 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004585/0.4371, allocations: 231.3 kB / 345.1 MB, free: 172 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.4375, allocations: 40.75 kB / 345.2 MB, free: 132 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.4386, allocations: 0.5975 MB / 345.8 MB, free: 15.5 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.439, allocations: 0.7599 MB / 346.5 MB, free: 14.71 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001715/0.4392, allocations: 30.97 kB / 346.6 MB, free: 14.68 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.923e-05/0.4392, allocations: 27.44 kB / 346.6 MB, free: 14.65 MB / 286.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4392, allocations: 0 / 346.6 MB, free: 14.65 MB / 286.1 MB Notification: Performance of Templates: time 0.007695/0.4469, allocations: 3.328 MB / 349.9 MB, free: 11.32 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1)