Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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.AD_DA_conversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007569/0.007569, allocations: 101.2 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.001479/0.001479, allocations: 197.4 kB / 16.67 MB, free: 5.977 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.616/1.616, allocations: 205.1 MB / 222.5 MB, free: 4.406 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.00183/0.00183, allocations: 51.8 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.153, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.005413/0.1585, allocations: 2.31 MB / 375.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.1607, allocations: 0.7173 MB / 376.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/0.1609, allocations: 7.938 kB / 376.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000239/0.1612, allocations: 31.7 kB / 376.2 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001768/0.1614, allocations: 55.5 kB / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005501/0.162, allocations: 91.75 kB / 376.4 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00039/0.1624, allocations: 267 kB / 376.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003701/0.1628, allocations: 130.9 kB / 376.8 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003169/0.1631, allocations: 111.6 kB / 376.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/0.1633, allocations: 115.5 kB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.084e-05/0.1634, allocations: 24 kB / 377 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.039e-05/0.1634, allocations: 24 kB / 377 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.341e-05/0.1635, allocations: 55.83 kB / 377.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.1637, allocations: 115.4 kB / 377.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004023/0.1641, allocations: 279 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1641, allocations: 0 / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1641, allocations: 0 / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1641, allocations: 0 / 377.5 MB, free: 12.96 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001334/0.1655, allocations: 0.6717 MB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.173e-05/0.1656, allocations: 8.031 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.828e-05/0.1657, allocations: 28.66 kB / 378.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005301/0.1662, allocations: 232.7 kB / 378.4 MB, free: 11.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.992e-05/0.1663, allocations: 50.25 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.846e-05/0.1664, allocations: 20.38 kB / 378.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006504/0.167, allocations: 264.2 kB / 378.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.1671, allocations: 0 / 378.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.231e-05/0.1671, allocations: 8 kB / 378.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.1671, allocations: 4 kB / 378.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006132/0.1677, allocations: 208.1 kB / 379 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/0.1693, allocations: 0.7599 MB / 379.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006402/0.17, allocations: 291.2 kB / 380 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004585/0.1704, allocations: 217 kB / 380.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.1705, allocations: 11.92 kB / 380.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005808/0.1711, allocations: 325.3 kB / 380.5 MB, free: 9.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.134e-06/0.1711, allocations: 0 / 380.5 MB, free: 9.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.00127/0.1724, allocations: 0.567 MB / 381.1 MB, free: 9.086 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001563/0.1725, allocations: 199.9 kB / 381.3 MB, free: 8.848 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/0.1727, allocations: 187 kB / 381.5 MB, free: 8.656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.1728, allocations: 37.7 kB / 381.5 MB, free: 8.613 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.1729, allocations: 136.7 kB / 381.7 MB, free: 8.477 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.394e-05/0.173, allocations: 82.98 kB / 381.7 MB, free: 8.395 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.1731, allocations: 70.02 kB / 381.8 MB, free: 8.316 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.1733, allocations: 334.8 kB / 382.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/0.1736, allocations: 108.6 kB / 382.2 MB, free: 7.871 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002955/0.1739, allocations: 171.1 kB / 382.4 MB, free: 7.684 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005946/0.1745, allocations: 425.4 kB / 382.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/0.1745, allocations: 4 kB / 382.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007577/0.1753, allocations: 438.4 kB / 383.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.1754, allocations: 101 kB / 383.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.1754, allocations: 3.938 kB / 383.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.822e-05/0.1754, allocations: 8.094 kB / 383.4 MB, free: 6.633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.1756, allocations: 35.92 kB / 383.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.1757, allocations: 4 kB / 383.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.1759, allocations: 35.73 kB / 383.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.1759, allocations: 12 kB / 383.5 MB, free: 6.547 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 (dA_Converter.y,$PRE.dA_Converter.y,aD_Converter.z,$PRE.aD_Converter.z,dA_Converter.x[7],dA_Converter.x[6],dA_Converter.x[5],dA_Converter.x[4],dA_Converter.x[3],dA_Converter.x[2],dA_Converter.x[1],aD_Converter.y[7],$PRE.aD_Converter.y[7],aD_Converter.y[6],$PRE.aD_Converter.y[6],aD_Converter.y[5],$PRE.aD_Converter.y[5],aD_Converter.y[4],$PRE.aD_Converter.y[4],aD_Converter.y[3],$PRE.aD_Converter.y[3],aD_Converter.y[2],$PRE.aD_Converter.y[2],aD_Converter.y[1],$PRE.aD_Converter.y[1],dA_Converter.trig,pulse.sampling,pulse.np,$PRE.pulse.np,pulse.T0,$PRE.pulse.T0,$whenCondition2,$whenCondition1,$whenCondition3,dA_Converter.vout,$PRE.dA_Converter.vout) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003349/0.1762, allocations: 243.8 kB / 383.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.834e-05/0.1763, allocations: 20 kB / 383.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.566e-05/0.1764, allocations: 26.58 kB / 383.7 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.1764, allocations: 7.938 kB / 383.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/0.1764, allocations: 0 / 383.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.1764, allocations: 3.938 kB / 383.7 MB, free: 6.227 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001797/0.1782, allocations: 0.9394 MB / 384.7 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1783, allocations: 0 / 384.7 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.1784, allocations: 23.92 kB / 384.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.1784, allocations: 0 / 384.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.606e-05/0.1784, allocations: 11.98 kB / 384.7 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.1785, allocations: 4 kB / 384.7 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.1785, allocations: 4.031 kB / 384.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.1795, allocations: 0.6009 MB / 385.3 MB, free: 4.539 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.754e-05/0.1796, allocations: 108.7 kB / 385.4 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.5e-05/0.1797, allocations: 16 kB / 385.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.1799, allocations: 19.98 kB / 385.5 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.958e-05/0.18, allocations: 19.97 kB / 385.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.1801, allocations: 15.98 kB / 385.5 MB, free: 4.344 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001287/0.1802, allocations: 136.2 kB / 385.6 MB, free: 4.211 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1802, allocations: 0 / 385.6 MB, free: 4.211 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004028/0.1806, allocations: 68 kB / 385.7 MB, free: 4.145 MB / 318.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: 24 ($whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.trig,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000234/0.1808, allocations: 129 kB / 385.8 MB, free: 4.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009408/0.1818, allocations: 0.541 MB / 386.4 MB, free: 3.434 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1818, allocations: 0 / 386.4 MB, free: 3.434 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005377/0.1824, allocations: 398.5 kB / 386.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007883/0.1832, allocations: 156.7 kB / 386.9 MB, free: 2.867 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.1844, allocations: 0.529 MB / 387.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.1849, allocations: 0.7406 MB / 388.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001824/0.1851, allocations: 53.89 kB / 388.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.163e-05/0.1852, allocations: 23.44 kB / 388.3 MB, free: 1.465 MB / 318.1 MB Notification: Performance of SimCode: time 1.984e-06/0.1852, allocations: 384 / 388.3 MB, free: 1.465 MB / 318.1 MB Notification: Performance of Templates: time 0.01059/0.1958, allocations: 4.272 MB / 392.5 MB, free: 13.18 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1)