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.0014/0.0014, 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.002168/0.002169, allocations: 190.7 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.838/1.838, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.001872/0.001872, allocations: 51.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3356, allocations: 46.63 MB / 324.9 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005141/0.3408, allocations: 2.885 MB / 327.7 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002449/0.3433, allocations: 0.7337 MB / 328.5 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003607/0.3437, allocations: 4.188 kB / 328.5 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002367/0.344, allocations: 43.94 kB / 328.5 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002351/0.3442, allocations: 85.22 kB / 328.6 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003479/0.3446, allocations: 91.94 kB / 328.7 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005356/0.3451, allocations: 401.1 kB / 329.1 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003179/0.3455, allocations: 124.7 kB / 329.2 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002532/0.3457, allocations: 154 kB / 329.4 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002593/0.346, allocations: 173.6 kB / 329.5 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.503e-05/0.3461, allocations: 37.22 kB / 329.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.116e-05/0.3462, allocations: 37.47 kB / 329.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.3463, allocations: 75.52 kB / 329.7 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002102/0.3465, allocations: 172.8 kB / 329.9 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006324/0.3472, allocations: 397.4 kB / 330.2 MB, free: 13.84 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.257e-06/0.3472, allocations: 1.438 kB / 330.2 MB, free: 13.84 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.3472, allocations: 0 / 330.2 MB, free: 13.84 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.3472, allocations: 0 / 330.2 MB, free: 13.84 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.00173/0.3489, allocations: 0.6806 MB / 330.9 MB, free: 13.25 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.349, allocations: 10.31 kB / 330.9 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.3491, allocations: 40.28 kB / 331 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004283/0.3495, allocations: 292.4 kB / 331.3 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.584e-05/0.3496, allocations: 18.69 kB / 331.3 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/0.3496, allocations: 25.41 kB / 331.3 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007368/0.3504, allocations: 288.8 kB / 331.6 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.3504, allocations: 0 / 331.6 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.771e-05/0.3504, allocations: 14.3 kB / 331.6 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.3505, allocations: 9.344 kB / 331.6 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008997/0.3514, allocations: 280.7 kB / 331.9 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002306/0.3537, allocations: 1.064 MB / 332.9 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008257/0.3545, allocations: 193 kB / 333.1 MB, free: 11.59 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.3549, allocations: 85.23 kB / 333.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.3549, allocations: 0 / 333.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006202/0.3555, allocations: 156.9 kB / 333.4 MB, free: 11.38 MB / 270.1 MB Notification: Performance of pre-optimization done (n=11): time 1.674e-06/0.3555, allocations: 0 / 333.4 MB, free: 11.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=11): time 0.001347/0.3569, allocations: 391.4 kB / 333.8 MB, free: 10.96 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.357, allocations: 85.05 kB / 333.8 MB, free: 10.86 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003706/0.3573, allocations: 328.5 kB / 334.2 MB, free: 10.53 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.3574, allocations: 29.64 kB / 334.2 MB, free: 10.49 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.3575, allocations: 203.5 kB / 334.4 MB, free: 10.29 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.3576, allocations: 47.56 kB / 334.4 MB, free: 10.24 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.224e-05/0.3577, allocations: 53.84 kB / 334.5 MB, free: 10.18 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3578, allocations: 334.8 kB / 334.8 MB, free: 9.848 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002952/0.3581, allocations: 105.5 kB / 334.9 MB, free: 9.742 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.3585, allocations: 190.8 kB / 335.1 MB, free: 9.508 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005972/0.3591, allocations: 319.1 kB / 335.4 MB, free: 9.141 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3591, allocations: 0 / 335.4 MB, free: 9.141 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008773/0.36, allocations: 391.3 kB / 335.8 MB, free: 8.742 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.195e-05/0.36, allocations: 33.7 kB / 335.8 MB, free: 8.703 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.3601, allocations: 4.469 kB / 335.8 MB, free: 8.699 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002362/0.3603, allocations: 32.84 kB / 335.9 MB, free: 8.664 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002716/0.3606, allocations: 63.88 kB / 335.9 MB, free: 8.602 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.3618, allocations: 1.394 MB / 337.3 MB, free: 7.07 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003853/0.3622, allocations: 55.72 kB / 337.4 MB, free: 7.016 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.3622, allocations: 23.92 kB / 337.4 MB, free: 6.992 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003372/0.3626, allocations: 184.3 kB / 337.6 MB, free: 6.809 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003053/0.3629, allocations: 186.1 kB / 337.8 MB, free: 6.578 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000523/0.3634, allocations: 303.2 kB / 338.1 MB, free: 6.227 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.733e-06/0.3634, allocations: 0 / 338.1 MB, free: 6.227 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007561/0.3642, allocations: 371.7 kB / 338.4 MB, free: 5.848 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.3642, allocations: 33.7 kB / 338.4 MB, free: 5.809 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.3643, allocations: 0 / 338.4 MB, free: 5.809 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001147/0.3644, allocations: 32.83 kB / 338.5 MB, free: 5.773 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002082/0.3646, allocations: 51.91 kB / 338.5 MB, free: 5.723 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/0.3657, allocations: 1.406 MB / 339.9 MB, free: 4.176 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.366, allocations: 35.81 kB / 340 MB, free: 4.141 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.366, allocations: 16 kB / 340 MB, free: 4.125 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.0001904/0.3662, allocations: 196.1 kB / 340.2 MB, free: 3.926 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.598e-05/0.3663, allocations: 23.72 kB / 340.2 MB, free: 3.902 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.573e-05/0.3664, allocations: 33.95 kB / 340.2 MB, free: 3.867 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3664, allocations: 4 kB / 340.2 MB, free: 3.863 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3664, allocations: 4 kB / 340.2 MB, free: 3.859 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3664, allocations: 3.984 kB / 340.2 MB, free: 3.855 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005829/0.367, allocations: 451.1 kB / 340.7 MB, free: 3.355 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.367, allocations: 0 / 340.7 MB, free: 3.355 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.3672, allocations: 31.95 kB / 340.7 MB, free: 3.324 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001251/0.3673, allocations: 28.88 kB / 340.7 MB, free: 3.293 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.3673, allocations: 4 kB / 340.8 MB, free: 3.289 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/0.3685, allocations: 1.391 MB / 342.1 MB, free: 1.754 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3685, allocations: 4.031 kB / 342.1 MB, free: 1.75 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006949/0.3692, allocations: 274.2 kB / 342.4 MB, free: 1.457 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.937e-05/0.3693, allocations: 104.8 kB / 342.5 MB, free: 1.336 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.3693, allocations: 4 kB / 342.5 MB, free: 1.332 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.3696, allocations: 23.97 kB / 342.5 MB, free: 1.309 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.96e-05/0.3697, allocations: 23.97 kB / 342.6 MB, free: 1.285 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.3697, allocations: 4 kB / 342.6 MB, free: 1.281 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002689/0.37, allocations: 227.1 kB / 342.8 MB, free: 1.062 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.37, allocations: 0 / 342.8 MB, free: 1.062 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006219/0.3706, allocations: 127.7 kB / 342.9 MB, free: 0.9375 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.0001715/0.3708, allocations: 107.2 kB / 343 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001362/0.3721, allocations: 0.6954 MB / 343.7 MB, free: 76 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.3722, allocations: 1.312 kB / 343.7 MB, free: 76 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004205/0.3726, allocations: 222.5 kB / 343.9 MB, free: 15.84 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003711/0.373, allocations: 40.64 kB / 344 MB, free: 15.8 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.374, allocations: 0.5648 MB / 344.5 MB, free: 15.21 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.3744, allocations: 0.7561 MB / 345.3 MB, free: 14.43 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001801/0.3746, allocations: 42.95 kB / 345.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.642e-05/0.3747, allocations: 23.42 kB / 345.4 MB, free: 14.36 MB / 286.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3747, allocations: 0 / 345.4 MB, free: 14.36 MB / 286.1 MB Notification: Performance of Templates: time 0.007568/0.3823, allocations: 3.544 MB / 348.9 MB, free: 10.82 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)