Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.01104/0.01104, allocations: 100.3 kB / 15.73 MB, free: 6.059 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.002546/0.002546, allocations: 204.8 kB / 16.68 MB, free: 5.98 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.911/1.911, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.001937/0.001938, allocations: 55.45 kB / 326.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.1585, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.005828/0.1644, allocations: 2.31 MB / 375.5 MB, free: 15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001838/0.1663, allocations: 0.7289 MB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000172/0.1665, allocations: 0 / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002124/0.1668, allocations: 31.66 kB / 376.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.1669, allocations: 59.48 kB / 376.3 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.1674, allocations: 91.77 kB / 376.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005234/0.1679, allocations: 267 kB / 376.7 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003149/0.1683, allocations: 123 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.1685, allocations: 115.6 kB / 376.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.1687, allocations: 111.6 kB / 377 MB, free: 13.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.333e-05/0.1688, allocations: 24 kB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.424e-05/0.1688, allocations: 20 kB / 377 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.533e-05/0.1689, allocations: 51.84 kB / 377.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.1691, allocations: 123.3 kB / 377.2 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004795/0.1696, allocations: 275.1 kB / 377.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1696, allocations: 0 / 377.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.1696, allocations: 0 / 377.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.1697, allocations: 4 kB / 377.5 MB, free: 12.98 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.001432/0.1711, allocations: 0.6639 MB / 378.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.9e-05/0.1712, allocations: 15.91 kB / 378.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.1713, allocations: 28.66 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005064/0.1718, allocations: 240.6 kB / 378.4 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.35e-05/0.1719, allocations: 50.27 kB / 378.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.678e-05/0.172, allocations: 20.36 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006754/0.1726, allocations: 252.3 kB / 378.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.1727, allocations: 0 / 378.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.1727, allocations: 12 kB / 378.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.1727, allocations: 4 kB / 378.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005851/0.1733, allocations: 216 kB / 379 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001504/0.1748, allocations: 0.7521 MB / 379.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006625/0.1755, allocations: 303.1 kB / 380 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004598/0.176, allocations: 221 kB / 380.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.029e-05/0.176, allocations: 4 kB / 380.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000607/0.1767, allocations: 320.2 kB / 380.5 MB, free: 9.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.234e-06/0.1767, allocations: 0 / 380.5 MB, free: 9.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001311/0.178, allocations: 0.5708 MB / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002412/0.1782, allocations: 199.9 kB / 381.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.1785, allocations: 195 kB / 381.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.1786, allocations: 33.7 kB / 381.5 MB, free: 8.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.1787, allocations: 136.8 kB / 381.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.932e-05/0.1788, allocations: 78.98 kB / 381.7 MB, free: 8.414 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.1789, allocations: 66.03 kB / 381.8 MB, free: 8.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1791, allocations: 330.8 kB / 382.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002366/0.1793, allocations: 112.6 kB / 382.2 MB, free: 7.895 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/0.1796, allocations: 175 kB / 382.4 MB, free: 7.703 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006271/0.1803, allocations: 429.5 kB / 382.8 MB, free: 7.234 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1803, allocations: 0 / 382.8 MB, free: 7.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007687/0.1811, allocations: 438.4 kB / 383.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.1812, allocations: 97.09 kB / 383.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.1813, allocations: 3.938 kB / 383.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.182e-05/0.1813, allocations: 7.984 kB / 383.4 MB, free: 6.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.1815, allocations: 39.92 kB / 383.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.1816, allocations: 4 kB / 383.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002123/0.1818, allocations: 31.73 kB / 383.4 MB, free: 6.582 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.1818, allocations: 16.03 kB / 383.5 MB, free: 6.566 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.0003771/0.1822, allocations: 239.7 kB / 383.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.073e-05/0.1823, allocations: 19.81 kB / 383.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.863e-05/0.1823, allocations: 30.53 kB / 383.7 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.1823, allocations: 7.984 kB / 383.7 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.1824, allocations: 0 / 383.7 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1824, allocations: 4 kB / 383.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.1839, allocations: 0.9316 MB / 384.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1839, allocations: 0 / 384.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.184, allocations: 24.02 kB / 384.7 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.1841, allocations: 3.938 kB / 384.7 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.045e-05/0.1841, allocations: 8 kB / 384.7 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.1841, allocations: 7.984 kB / 384.7 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1841, allocations: 0 / 384.7 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009633/0.1851, allocations: 0.605 MB / 385.3 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.411e-05/0.1852, allocations: 96.77 kB / 385.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.417e-05/0.1853, allocations: 27.92 kB / 385.5 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.1855, allocations: 15.98 kB / 385.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.1856, allocations: 23.95 kB / 385.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.633e-05/0.1857, allocations: 19.98 kB / 385.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001255/0.1858, allocations: 136.2 kB / 385.6 MB, free: 4.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1858, allocations: 0 / 385.6 MB, free: 4.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004043/0.1862, allocations: 72 kB / 385.7 MB, free: 4.16 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.0002291/0.1865, allocations: 124.9 kB / 385.8 MB, free: 4.031 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.1875, allocations: 0.5409 MB / 386.4 MB, free: 3.453 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.1875, allocations: 0 / 386.4 MB, free: 3.453 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005529/0.1881, allocations: 394.6 kB / 386.8 MB, free: 3.043 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007432/0.1888, allocations: 160.9 kB / 386.9 MB, free: 2.887 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.1901, allocations: 0.5248 MB / 387.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005505/0.1907, allocations: 0.7445 MB / 388.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002253/0.1909, allocations: 57.89 kB / 388.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.676e-05/0.191, allocations: 23.42 kB / 388.3 MB, free: 1.48 MB / 318.1 MB Notification: Performance of SimCode: time 1.413e-06/0.191, allocations: 0 / 388.3 MB, free: 1.48 MB / 318.1 MB Notification: Performance of Templates: time 0.01211/0.2032, allocations: 4.268 MB / 392.5 MB, free: 13.2 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1)