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.01276/0.01276, allocations: 100 kB / 15.73 MB, free: 6.047 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.002875/0.002875, allocations: 194 kB / 16.67 MB, free: 5.949 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.804/1.804, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001247/0.001247, allocations: 41.62 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1545, allocations: 46.62 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005885/0.1604, allocations: 2.847 MB / 376 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002389/0.1629, allocations: 0.7407 MB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007273/0.1637, allocations: 4 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004228/0.1642, allocations: 51.5 kB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003973/0.1646, allocations: 91.19 kB / 376.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005401/0.1652, allocations: 111.8 kB / 377 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005889/0.1658, allocations: 410.3 kB / 377.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003057/0.1661, allocations: 135.9 kB / 377.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.1663, allocations: 143.4 kB / 377.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002526/0.1666, allocations: 175.2 kB / 377.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.756e-05/0.1666, allocations: 40 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.392e-05/0.1667, allocations: 36 kB / 378 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.1668, allocations: 83.67 kB / 378 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002662/0.1671, allocations: 163.2 kB / 378.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006792/0.1678, allocations: 406.3 kB / 378.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.121e-05/0.1678, allocations: 0 / 378.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1678, allocations: 0 / 378.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.302e-05/0.1679, allocations: 0 / 378.6 MB, free: 11.86 MB / 318.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.001846/0.1697, allocations: 0.6962 MB / 379.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.092e-05/0.1698, allocations: 8.031 kB / 379.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.1699, allocations: 36.75 kB / 379.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006999/0.1706, allocations: 295.7 kB / 379.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/0.1707, allocations: 20.94 kB / 379.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.453e-05/0.1707, allocations: 28.36 kB / 379.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007714/0.1715, allocations: 289.1 kB / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.1715, allocations: 0 / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.1716, allocations: 8 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.1716, allocations: 8 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008804/0.1725, allocations: 286 kB / 380.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.1746, allocations: 1.056 MB / 381.3 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007522/0.1754, allocations: 194.5 kB / 381.5 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002883/0.1757, allocations: 84.8 kB / 381.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.1757, allocations: 0 / 381.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004643/0.1762, allocations: 156.9 kB / 381.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.704e-06/0.1762, allocations: 0 / 381.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001268/0.1775, allocations: 399.2 kB / 382.1 MB, free: 8.086 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.1775, allocations: 85.11 kB / 382.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004908/0.178, allocations: 328.5 kB / 382.5 MB, free: 7.656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.1781, allocations: 25.7 kB / 382.5 MB, free: 7.625 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000231/0.1783, allocations: 216 kB / 382.8 MB, free: 7.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.777e-05/0.1784, allocations: 39.69 kB / 382.8 MB, free: 7.371 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.1785, allocations: 57.83 kB / 382.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1787, allocations: 334.8 kB / 383.2 MB, free: 6.973 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003209/0.179, allocations: 101.5 kB / 383.3 MB, free: 6.871 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003792/0.1794, allocations: 190.1 kB / 383.5 MB, free: 6.637 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006992/0.1801, allocations: 327.1 kB / 383.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1801, allocations: 0 / 383.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009116/0.181, allocations: 383.6 kB / 384.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.334e-05/0.1811, allocations: 37.69 kB / 384.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.1811, allocations: 4.469 kB / 384.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002331/0.1814, allocations: 32.84 kB / 384.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.1816, allocations: 59.89 kB / 384.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.183, allocations: 1.406 MB / 385.7 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003674/0.1833, allocations: 51.81 kB / 385.8 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.1834, allocations: 19.98 kB / 385.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003927/0.1838, allocations: 184.3 kB / 385.9 MB, free: 3.926 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003687/0.1842, allocations: 198.3 kB / 386.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005796/0.1848, allocations: 295.2 kB / 386.4 MB, free: 3.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.224e-06/0.1848, allocations: 0 / 386.4 MB, free: 3.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007853/0.1856, allocations: 368 kB / 386.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.748e-05/0.1856, allocations: 37.77 kB / 386.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1856, allocations: 4 kB / 386.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001161/0.1858, allocations: 36.77 kB / 386.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.186, allocations: 47.91 kB / 386.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.1873, allocations: 1.406 MB / 388.3 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003004/0.1876, allocations: 40.02 kB / 388.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.1877, allocations: 16 kB / 388.4 MB, free: 1.234 MB / 318.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.0002009/0.1879, allocations: 196.1 kB / 388.6 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.2e-05/0.1879, allocations: 31.75 kB / 388.6 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.907e-05/0.188, allocations: 29.89 kB / 388.6 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.188, allocations: 8 kB / 388.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.188, allocations: 0 / 388.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.188, allocations: 3.984 kB / 388.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005588/0.1886, allocations: 451.2 kB / 389.1 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1886, allocations: 0 / 389.1 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.1888, allocations: 39.89 kB / 389.1 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.843e-05/0.1889, allocations: 20.84 kB / 389.1 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.1889, allocations: 4 kB / 389.1 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/0.1901, allocations: 1.406 MB / 390.5 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1901, allocations: 0 / 390.5 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006896/0.1908, allocations: 266.5 kB / 390.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.291e-05/0.1909, allocations: 108.9 kB / 390.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.1909, allocations: 0 / 390.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/0.1911, allocations: 23.97 kB / 390.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.1912, allocations: 23.95 kB / 391 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.1913, allocations: 7.938 kB / 391 MB, free: 14.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003672/0.1916, allocations: 227.1 kB / 391.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1916, allocations: 4 kB / 391.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005834/0.1922, allocations: 131.8 kB / 391.3 MB, free: 14.03 MB / 334.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.0001662/0.1924, allocations: 95.25 kB / 391.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.1941, allocations: 0.6966 MB / 392.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.1941, allocations: 4.062 kB / 392.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004636/0.1946, allocations: 214.5 kB / 392.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.195, allocations: 40.64 kB / 392.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.1962, allocations: 480.6 kB / 392.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005935/0.1968, allocations: 0.7561 MB / 393.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.197, allocations: 38.97 kB / 393.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.372e-05/0.1971, allocations: 23.38 kB / 393.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1971, allocations: 0 / 393.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of Templates: time 0.009674/0.2068, allocations: 3.67 MB / 397.3 MB, free: 7.898 MB / 334.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)