Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001497/0.001497, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.001731/0.001731, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.807/1.807, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.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.0005965/0.0005968, allocations: 8 kB / 280.1 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1293, allocations: 47.59 MB / 327.7 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003347/0.1327, allocations: 2.311 MB / 330 MB, free: 1.762 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.1342, allocations: 0.7181 MB / 330.7 MB, free: 1.035 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001972/0.1344, allocations: 7.938 kB / 330.7 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.1345, allocations: 35.75 kB / 330.8 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002844/0.1348, allocations: 103.6 kB / 330.9 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.1352, allocations: 71.86 kB / 331 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004312/0.1356, allocations: 259.4 kB / 331.2 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003595/0.136, allocations: 98.3 kB / 331.3 MB, free: 484 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.1362, allocations: 119.5 kB / 331.4 MB, free: 364 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002373/0.1365, allocations: 143.4 kB / 331.6 MB, free: 220 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.757e-05/0.1365, allocations: 24 kB / 331.6 MB, free: 196 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.638e-05/0.1366, allocations: 16 kB / 331.6 MB, free: 180 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.857e-05/0.1366, allocations: 59.73 kB / 331.7 MB, free: 120 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.493e-05/0.1367, allocations: 85.52 kB / 331.7 MB, free: 28 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003305/0.1371, allocations: 295.4 kB / 332 MB, free: 15.74 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1371, allocations: 0 / 332 MB, free: 15.74 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1371, allocations: 0 / 332 MB, free: 15.74 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1371, allocations: 0 / 332 MB, free: 15.74 MB / 286.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.001411/0.1385, allocations: 0.6535 MB / 332.7 MB, free: 15.03 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.1386, allocations: 11.97 kB / 332.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.281e-05/0.1387, allocations: 31.62 kB / 332.7 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004263/0.1391, allocations: 290.3 kB / 333 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.401e-05/0.1392, allocations: 20.56 kB / 333 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.177e-05/0.1392, allocations: 24 kB / 333.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007242/0.14, allocations: 304.7 kB / 333.4 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.14, allocations: 0 / 333.4 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.859e-05/0.14, allocations: 12 kB / 333.4 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.14, allocations: 8 kB / 333.4 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008504/0.1409, allocations: 318 kB / 333.7 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.1428, allocations: 1.079 MB / 334.8 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008021/0.1436, allocations: 242.7 kB / 335 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.742e-05/0.1437, allocations: 7.938 kB / 335 MB, free: 12.56 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000566/0.1443, allocations: 169 kB / 335.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 2.034e-06/0.1443, allocations: 0 / 335.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001282/0.1456, allocations: 443.1 kB / 335.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/0.1456, allocations: 85.09 kB / 335.7 MB, free: 11.81 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003898/0.146, allocations: 320.5 kB / 336 MB, free: 11.49 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.341e-05/0.1461, allocations: 29.7 kB / 336 MB, free: 11.46 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.1463, allocations: 199.6 kB / 336.2 MB, free: 11.26 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.264e-05/0.1464, allocations: 47.39 kB / 336.3 MB, free: 11.21 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.185e-05/0.1464, allocations: 0 / 336.3 MB, free: 11.21 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.1466, allocations: 338.8 kB / 336.6 MB, free: 10.87 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003122/0.1469, allocations: 108.2 kB / 336.7 MB, free: 10.77 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.1473, allocations: 222 kB / 336.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003483/0.1477, allocations: 149.6 kB / 337.1 MB, free: 10.35 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.1477, allocations: 3.984 kB / 337.1 MB, free: 10.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009142/0.1486, allocations: 415.7 kB / 337.5 MB, free: 9.922 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007205/0.1493, allocations: 1.416 MB / 338.9 MB, free: 8.391 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.1493, allocations: 8 kB / 338.9 MB, free: 8.383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002092/0.1496, allocations: 40.72 kB / 338.9 MB, free: 8.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002563/0.1498, allocations: 67.89 kB / 339 MB, free: 8.273 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/0.1509, allocations: 1.308 MB / 340.3 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.1513, allocations: 59.91 kB / 340.4 MB, free: 6.777 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.1513, allocations: 16 kB / 340.4 MB, free: 6.762 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.1513, allocations: 4 kB / 340.4 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007232/0.1521, allocations: 346.7 kB / 340.7 MB, free: 6.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.1521, allocations: 4 kB / 340.7 MB, free: 6.406 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.343e-05/0.1522, allocations: 20.86 kB / 340.8 MB, free: 6.383 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.1524, allocations: 68.02 kB / 340.8 MB, free: 6.316 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/0.1535, allocations: 1.303 MB / 342.1 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000319/0.1538, allocations: 43.77 kB / 342.2 MB, free: 4.836 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.884e-05/0.1539, allocations: 15.98 kB / 342.2 MB, free: 4.82 MB / 286.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.0003127/0.1542, allocations: 220.7 kB / 342.4 MB, free: 4.598 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.139e-05/0.1542, allocations: 27.62 kB / 342.4 MB, free: 4.57 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.178e-05/0.1543, allocations: 33.95 kB / 342.5 MB, free: 4.535 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1543, allocations: 4 kB / 342.5 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1543, allocations: 3.953 kB / 342.5 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1543, allocations: 0 / 342.5 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005826/0.1549, allocations: 451.2 kB / 342.9 MB, free: 4.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1549, allocations: 0 / 342.9 MB, free: 4.027 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001664/0.1551, allocations: 44 kB / 343 MB, free: 3.984 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/0.1552, allocations: 28.81 kB / 343 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.1553, allocations: 7.953 kB / 343 MB, free: 3.945 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001208/0.1565, allocations: 1.307 MB / 344.3 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1565, allocations: 0 / 344.3 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007297/0.1572, allocations: 316.1 kB / 344.6 MB, free: 2.164 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.1573, allocations: 104.8 kB / 344.7 MB, free: 2.043 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.827e-05/0.1574, allocations: 4 kB / 344.7 MB, free: 2.039 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.1576, allocations: 35.97 kB / 344.7 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.874e-05/0.1577, allocations: 15.97 kB / 344.8 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.1577, allocations: 4 kB / 344.8 MB, free: 1.984 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002727/0.158, allocations: 227.1 kB / 345 MB, free: 1.766 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.158, allocations: 0 / 345 MB, free: 1.766 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005862/0.1586, allocations: 127.7 kB / 345.1 MB, free: 1.641 MB / 286.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.0002297/0.1589, allocations: 107.2 kB / 345.2 MB, free: 1.527 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.1603, allocations: 0.7401 MB / 346 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.1604, allocations: 0 / 346 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004421/0.1608, allocations: 230.7 kB / 346.2 MB, free: 0.5 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.1611, allocations: 48.77 kB / 346.2 MB, free: 464 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.1622, allocations: 0.5466 MB / 346.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.1625, allocations: 0.7677 MB / 347.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001568/0.1627, allocations: 34.97 kB / 347.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.121e-05/0.1627, allocations: 27.42 kB / 347.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1627, allocations: 0 / 347.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of Templates: time 0.007574/0.1703, allocations: 3.227 MB / 350.8 MB, free: 11.8 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) Environment - environmentSimulation: