Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.0008877/0.0008876, allocations: 97.95 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.007441/0.007441, allocations: 170 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.4 MB / 222.4 MB, free: 5.805 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.0004738/0.000474, allocations: 12 kB / 279.5 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3588, allocations: 47.59 MB / 327 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003942/0.3628, allocations: 2.518 MB / 329.6 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001717/0.3646, allocations: 0.7332 MB / 330.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002481/0.3648, allocations: 5.469 kB / 330.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002342/0.3651, allocations: 39.97 kB / 330.3 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002622/0.3654, allocations: 76.8 kB / 330.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003686/0.3657, allocations: 92.16 kB / 330.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005505/0.3663, allocations: 385.6 kB / 330.9 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002842/0.3666, allocations: 104.6 kB / 331 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002275/0.3668, allocations: 124.1 kB / 331.1 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.3671, allocations: 156.6 kB / 331.3 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.869e-05/0.3672, allocations: 19.34 kB / 331.3 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.906e-05/0.3673, allocations: 18.44 kB / 331.3 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.439e-05/0.3673, allocations: 60.22 kB / 331.4 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002231/0.3676, allocations: 172.7 kB / 331.5 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004715/0.368, allocations: 370.5 kB / 331.9 MB, free: 13.71 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.3681, allocations: 0 / 331.9 MB, free: 13.71 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3681, allocations: 1 kB / 331.9 MB, free: 13.71 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.3681, 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.001645/0.3697, allocations: 0.6526 MB / 332.5 MB, free: 13.14 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.471e-05/0.3698, allocations: 9.188 kB / 332.6 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.37, allocations: 36.58 kB / 332.6 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004179/0.3704, allocations: 299.9 kB / 332.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.846e-05/0.3704, allocations: 14.84 kB / 332.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.507e-05/0.3705, allocations: 25.31 kB / 332.9 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008879/0.3714, allocations: 306.6 kB / 333.2 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.3714, allocations: 0 / 333.2 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.956e-05/0.3715, allocations: 10.38 kB / 333.2 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.3715, allocations: 5.781 kB / 333.2 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001/0.3725, allocations: 320.2 kB / 333.5 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002283/0.3748, allocations: 1.077 MB / 334.6 MB, free: 11.58 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008726/0.3757, allocations: 245.9 kB / 334.9 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003137/0.376, allocations: 100.8 kB / 335 MB, free: 11.28 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.3761, allocations: 4 kB / 335 MB, free: 11.28 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000558/0.3766, allocations: 169 kB / 335.1 MB, free: 11.09 MB / 270.1 MB Notification: Performance of pre-optimization done (n=11): time 2.094e-06/0.3766, allocations: 0 / 335.1 MB, free: 11.09 MB / 270.1 MB Notification: Performance of matching and sorting (n=11): time 0.001426/0.3781, allocations: 447.1 kB / 335.6 MB, free: 10.63 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.153e-05/0.3782, allocations: 81.11 kB / 335.6 MB, free: 10.53 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004306/0.3786, allocations: 320.9 kB / 336 MB, free: 10.21 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.3786, allocations: 33.7 kB / 336 MB, free: 10.17 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.3788, allocations: 203.5 kB / 336.2 MB, free: 9.965 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.174e-05/0.3789, allocations: 39.53 kB / 336.2 MB, free: 9.926 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.961e-05/0.3789, allocations: 33.64 kB / 336.3 MB, free: 9.887 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3791, allocations: 342.8 kB / 336.6 MB, free: 9.543 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.3795, allocations: 112.2 kB / 336.7 MB, free: 9.434 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004135/0.3799, allocations: 210.8 kB / 336.9 MB, free: 9.18 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000766/0.3807, allocations: 351.1 kB / 337.3 MB, free: 8.781 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3807, allocations: 0 / 337.3 MB, free: 8.781 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009741/0.3817, allocations: 419.7 kB / 337.7 MB, free: 8.355 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000237/0.3819, allocations: 227.6 kB / 337.9 MB, free: 8.074 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.3819, allocations: 4 kB / 337.9 MB, free: 8.07 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002189/0.3822, allocations: 24.84 kB / 337.9 MB, free: 8.043 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002734/0.3824, allocations: 71.89 kB / 338 MB, free: 7.973 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.3838, allocations: 1.304 MB / 339.3 MB, free: 6.539 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003854/0.3842, allocations: 59.59 kB / 339.3 MB, free: 6.48 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.3842, allocations: 16 kB / 339.4 MB, free: 6.465 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.524e-06/0.3842, allocations: 4 kB / 339.4 MB, free: 6.461 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007931/0.385, allocations: 346.5 kB / 339.7 MB, free: 6.113 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.385, allocations: 4 kB / 339.7 MB, free: 6.109 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.889e-05/0.3851, allocations: 32.91 kB / 339.7 MB, free: 6.074 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002242/0.3853, allocations: 63.91 kB / 339.8 MB, free: 6.012 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/0.3865, allocations: 1.292 MB / 341.1 MB, free: 4.582 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000336/0.3869, allocations: 47.66 kB / 341.1 MB, free: 4.535 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.3869, allocations: 12 kB / 341.2 MB, free: 4.523 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.0003058/0.3872, allocations: 229.1 kB / 341.4 MB, free: 4.289 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.306e-05/0.3873, allocations: 23.72 kB / 341.4 MB, free: 4.266 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.727e-05/0.3873, allocations: 25.89 kB / 341.4 MB, free: 4.238 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3873, allocations: 0 / 341.4 MB, free: 4.238 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.3874, allocations: 3.938 kB / 341.4 MB, free: 4.234 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.769e-06/0.3874, allocations: 7.984 kB / 341.4 MB, free: 4.227 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00061/0.388, allocations: 451.1 kB / 341.9 MB, free: 3.727 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.388, allocations: 0 / 341.9 MB, free: 3.727 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.3882, allocations: 39.98 kB / 341.9 MB, free: 3.688 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000112/0.3883, allocations: 28.78 kB / 341.9 MB, free: 3.656 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.3883, allocations: 4 kB / 342 MB, free: 3.652 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.3894, allocations: 1.296 MB / 343.2 MB, free: 2.223 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3894, allocations: 0 / 343.2 MB, free: 2.223 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000796/0.3903, allocations: 306.4 kB / 343.5 MB, free: 1.898 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.858e-05/0.3904, allocations: 104.8 kB / 343.6 MB, free: 1.777 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.552e-05/0.3904, allocations: 8 kB / 343.7 MB, free: 1.77 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.3906, allocations: 31.97 kB / 343.7 MB, free: 1.738 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.912e-05/0.3907, allocations: 19.97 kB / 343.7 MB, free: 1.719 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.3908, allocations: 7.938 kB / 343.7 MB, free: 1.711 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002824/0.3911, allocations: 235 kB / 343.9 MB, free: 1.484 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3911, allocations: 4 kB / 343.9 MB, free: 1.48 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006154/0.3917, allocations: 119.8 kB / 344.1 MB, free: 1.363 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.0002159/0.3919, allocations: 107.4 kB / 344.2 MB, free: 1.25 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.3937, allocations: 0.7351 MB / 344.9 MB, free: 476 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3937, allocations: 0 / 344.9 MB, free: 476 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005063/0.3942, allocations: 235.3 kB / 345.1 MB, free: 228 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.3947, allocations: 40.62 kB / 345.2 MB, free: 188 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.3959, allocations: 0.5895 MB / 345.8 MB, free: 15.56 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.3964, allocations: 0.7561 MB / 346.5 MB, free: 14.78 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001897/0.3966, allocations: 38.95 kB / 346.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.734e-05/0.3967, allocations: 23.44 kB / 346.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3967, allocations: 4 kB / 346.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of Templates: time 0.008882/0.4056, allocations: 3.329 MB / 349.9 MB, free: 11.38 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1)