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.001068/0.001068, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001084/0.001084, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.893/1.893, allocations: 205.4 MB / 222.1 MB, free: 5.551 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.0005672/0.0005673, allocations: 12 kB / 278.9 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3385, allocations: 47.59 MB / 326.5 MB, free: 1.465 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003195/0.3418, allocations: 2.318 MB / 328.8 MB, free: 15.65 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.3434, allocations: 0.7221 MB / 329.5 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.3436, allocations: 4 kB / 329.5 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.566e-05/0.3437, allocations: 35.53 kB / 329.5 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003186/0.344, allocations: 111.6 kB / 329.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003255/0.3444, allocations: 73.05 kB / 329.7 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004274/0.3448, allocations: 249.3 kB / 330 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002931/0.3451, allocations: 98.62 kB / 330.1 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.3453, allocations: 120.2 kB / 330.2 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.3456, allocations: 148 kB / 330.3 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.711e-05/0.3456, allocations: 18.84 kB / 330.3 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.582e-05/0.3457, allocations: 18.88 kB / 330.4 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.494e-05/0.3458, allocations: 55.56 kB / 330.4 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.346, allocations: 83.19 kB / 330.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.3463, allocations: 302.1 kB / 330.8 MB, free: 14.15 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3463, allocations: 0 / 330.8 MB, free: 14.15 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.3463, allocations: 1.062 kB / 330.8 MB, free: 14.15 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.3463, allocations: 0 / 330.8 MB, free: 14.15 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.001526/0.3479, allocations: 0.6543 MB / 331.4 MB, free: 13.58 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.3479, allocations: 9.719 kB / 331.5 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.348, allocations: 32.28 kB / 331.5 MB, free: 13.57 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004701/0.3485, allocations: 289.5 kB / 331.8 MB, free: 13.28 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.53e-05/0.3486, allocations: 19.53 kB / 331.8 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.361e-05/0.3486, allocations: 24.03 kB / 331.8 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007935/0.3494, allocations: 298 kB / 332.1 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.3494, allocations: 5.047 kB / 332.1 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.3495, allocations: 10.34 kB / 332.1 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.3495, allocations: 5.438 kB / 332.1 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008964/0.3504, allocations: 319 kB / 332.4 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.3523, allocations: 1.069 MB / 333.5 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009332/0.3533, allocations: 255.3 kB / 333.7 MB, free: 11.92 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.703e-05/0.3533, allocations: 1.125 kB / 333.7 MB, free: 11.92 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005972/0.3539, allocations: 165.1 kB / 333.9 MB, free: 11.8 MB / 270.1 MB Notification: Performance of pre-optimization done (n=11): time 1.673e-06/0.3539, allocations: 0 / 333.9 MB, free: 11.8 MB / 270.1 MB Notification: Performance of matching and sorting (n=11): time 0.001436/0.3554, allocations: 453.9 kB / 334.4 MB, free: 11.34 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.942e-05/0.3555, allocations: 81.14 kB / 334.4 MB, free: 11.25 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004046/0.3559, allocations: 324.4 kB / 334.8 MB, free: 10.92 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.888e-05/0.3559, allocations: 29.7 kB / 334.8 MB, free: 10.89 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002055/0.3561, allocations: 203.6 kB / 335 MB, free: 10.68 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.78e-05/0.3562, allocations: 39.55 kB / 335 MB, free: 10.64 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.517e-05/0.3562, allocations: 4 kB / 335 MB, free: 10.64 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.3564, allocations: 334.8 kB / 335.3 MB, free: 10.3 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003194/0.3568, allocations: 112.1 kB / 335.5 MB, free: 10.2 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003897/0.3572, allocations: 214.8 kB / 335.7 MB, free: 9.938 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003492/0.3575, allocations: 153.6 kB / 335.8 MB, free: 9.781 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3575, allocations: 4 kB / 335.8 MB, free: 9.777 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008743/0.3584, allocations: 419.7 kB / 336.2 MB, free: 9.352 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006592/0.3591, allocations: 1.416 MB / 337.6 MB, free: 7.82 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3591, allocations: 4 kB / 337.7 MB, free: 7.816 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000202/0.3593, allocations: 36.8 kB / 337.7 MB, free: 7.777 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002612/0.3596, allocations: 75.88 kB / 337.8 MB, free: 7.703 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.3606, allocations: 1.304 MB / 339.1 MB, free: 6.27 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003465/0.361, allocations: 59.88 kB / 339.1 MB, free: 6.211 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.979e-05/0.361, allocations: 19.98 kB / 339.1 MB, free: 6.191 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.3611, allocations: 4 kB / 339.1 MB, free: 6.188 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007232/0.3618, allocations: 342.4 kB / 339.5 MB, free: 5.844 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3618, allocations: 4 kB / 339.5 MB, free: 5.84 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.043e-05/0.3619, allocations: 24.84 kB / 339.5 MB, free: 5.812 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.3621, allocations: 63.89 kB / 339.6 MB, free: 5.75 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009437/0.3631, allocations: 1.299 MB / 340.9 MB, free: 4.316 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.3634, allocations: 44.08 kB / 340.9 MB, free: 4.273 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.3634, allocations: 12 kB / 340.9 MB, free: 4.262 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002518/0.3637, allocations: 229 kB / 341.1 MB, free: 4.027 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.322e-05/0.3637, allocations: 31.56 kB / 341.2 MB, free: 3.996 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.296e-05/0.3638, allocations: 25.89 kB / 341.2 MB, free: 3.969 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.3638, allocations: 4 kB / 341.2 MB, free: 3.965 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.3638, allocations: 3.953 kB / 341.2 MB, free: 3.961 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3638, allocations: 0 / 341.2 MB, free: 3.961 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004735/0.3643, allocations: 455.2 kB / 341.7 MB, free: 3.457 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3643, allocations: 0 / 341.7 MB, free: 3.457 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.3645, allocations: 35.97 kB / 341.7 MB, free: 3.422 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.564e-05/0.3646, allocations: 33.19 kB / 341.7 MB, free: 3.387 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.3646, allocations: 7.938 kB / 341.7 MB, free: 3.379 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009305/0.3655, allocations: 1.304 MB / 343 MB, free: 1.941 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3655, allocations: 3.938 kB / 343 MB, free: 1.938 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007469/0.3663, allocations: 308.2 kB / 343.3 MB, free: 1.605 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.201e-05/0.3664, allocations: 104.7 kB / 343.4 MB, free: 1.484 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.889e-05/0.3664, allocations: 7.984 kB / 343.5 MB, free: 1.477 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.3667, allocations: 31.97 kB / 343.5 MB, free: 1.445 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.782e-05/0.3667, allocations: 27.91 kB / 343.5 MB, free: 1.418 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.3668, allocations: 0 / 343.5 MB, free: 1.418 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002519/0.367, allocations: 231.1 kB / 343.7 MB, free: 1.195 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.367, allocations: 0 / 343.7 MB, free: 1.195 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005287/0.3676, allocations: 115.8 kB / 343.8 MB, free: 1.082 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001495/0.3677, allocations: 99.23 kB / 343.9 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.3693, allocations: 0.7351 MB / 344.7 MB, free: 196 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.3693, allocations: 0 / 344.7 MB, free: 196 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004582/0.3697, allocations: 235.2 kB / 344.9 MB, free: 15.95 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.3701, allocations: 48.58 kB / 345 MB, free: 15.9 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.3711, allocations: 0.5541 MB / 345.5 MB, free: 15.32 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.3715, allocations: 0.7638 MB / 346.3 MB, free: 14.53 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001568/0.3717, allocations: 34.97 kB / 346.3 MB, free: 14.49 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.498e-05/0.3717, allocations: 23.44 kB / 346.3 MB, free: 14.47 MB / 286.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3718, allocations: 0 / 346.3 MB, free: 14.47 MB / 286.1 MB Notification: Performance of Templates: time 0.006766/0.3785, allocations: 3.251 MB / 349.6 MB, free: 11.22 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: