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.007036/0.007036, allocations: 103.7 kB / 15.74 MB, free: 5.992 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.001199/0.001199, allocations: 191.9 kB / 16.67 MB, free: 5.918 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.769/1.769, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001305/0.001305, allocations: 54.03 kB / 326.6 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1582, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.005461/0.1638, allocations: 2.307 MB / 375.5 MB, free: 14.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002104/0.1659, allocations: 0.7289 MB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.1662, allocations: 7.938 kB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002335/0.1665, allocations: 31.72 kB / 376.3 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.1666, allocations: 55.48 kB / 376.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005174/0.1671, allocations: 87.77 kB / 376.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004313/0.1676, allocations: 271 kB / 376.7 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003417/0.1679, allocations: 119 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002645/0.1682, allocations: 115.6 kB / 376.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.1684, allocations: 111.6 kB / 377 MB, free: 13.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.024e-05/0.1685, allocations: 27.94 kB / 377 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.065e-05/0.1685, allocations: 24 kB / 377 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.694e-05/0.1686, allocations: 51.84 kB / 377.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001635/0.1688, allocations: 123.4 kB / 377.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004183/0.1692, allocations: 271.1 kB / 377.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.1692, allocations: 3.938 kB / 377.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.1692, allocations: 0 / 377.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.1692, allocations: 0 / 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.001412/0.1707, allocations: 0.6677 MB / 378.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.1707, allocations: 8.031 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.1708, allocations: 28.66 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004613/0.1713, allocations: 240.6 kB / 378.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.1714, allocations: 50.27 kB / 378.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.047e-05/0.1715, allocations: 16.38 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006286/0.1721, allocations: 260.3 kB / 378.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.1721, allocations: 0 / 378.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.023e-05/0.1722, allocations: 12 kB / 378.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.1722, allocations: 11.94 kB / 378.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000585/0.1728, allocations: 200.1 kB / 379 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.1745, allocations: 0.7638 MB / 379.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007564/0.1753, allocations: 299.2 kB / 380 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000572/0.1759, allocations: 221 kB / 380.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.1759, allocations: 4 kB / 380.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007648/0.1767, allocations: 325.3 kB / 380.6 MB, free: 9.684 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.863e-06/0.1767, allocations: 0 / 380.6 MB, free: 9.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001544/0.1783, allocations: 0.567 MB / 381.1 MB, free: 9.098 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002318/0.1785, allocations: 203.9 kB / 381.3 MB, free: 8.855 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002751/0.1788, allocations: 191 kB / 381.5 MB, free: 8.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.512e-05/0.1788, allocations: 33.7 kB / 381.5 MB, free: 8.621 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.179, allocations: 136.8 kB / 381.7 MB, free: 8.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.541e-05/0.1791, allocations: 75 kB / 381.7 MB, free: 8.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.1793, allocations: 74.02 kB / 381.8 MB, free: 8.328 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002551/0.1795, allocations: 334.8 kB / 382.1 MB, free: 7.992 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.1798, allocations: 104.6 kB / 382.2 MB, free: 7.887 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000329/0.1802, allocations: 183.1 kB / 382.4 MB, free: 7.688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000705/0.1809, allocations: 421.5 kB / 382.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.1809, allocations: 3.938 kB / 382.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008353/0.1817, allocations: 434.4 kB / 383.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000124/0.1819, allocations: 93.09 kB / 383.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.1819, allocations: 3.938 kB / 383.4 MB, free: 6.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.903e-05/0.1819, allocations: 8.094 kB / 383.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.1822, allocations: 43.91 kB / 383.4 MB, free: 6.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/0.1822, allocations: 7.938 kB / 383.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002106/0.1824, allocations: 31.73 kB / 383.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.274e-05/0.1825, allocations: 16 kB / 383.5 MB, free: 6.555 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.0003594/0.1828, allocations: 235.8 kB / 383.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5e-05/0.1829, allocations: 19.81 kB / 383.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.017e-05/0.183, allocations: 26.59 kB / 383.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.183, allocations: 7.938 kB / 383.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.183, allocations: 0 / 383.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.183, allocations: 3.984 kB / 383.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/0.1848, allocations: 0.9277 MB / 384.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.1848, allocations: 7.984 kB / 384.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.1849, allocations: 23.92 kB / 384.7 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1849, allocations: 192 / 384.7 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.1849, allocations: 8 kB / 384.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.185, allocations: 7.938 kB / 384.7 MB, free: 5.195 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.185, allocations: 4.031 kB / 384.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.1861, allocations: 0.6048 MB / 385.3 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.1863, allocations: 104.8 kB / 385.4 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.194e-05/0.1863, allocations: 19.98 kB / 385.5 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.1866, allocations: 19.97 kB / 385.5 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.1867, allocations: 31.91 kB / 385.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-05/0.1867, allocations: 8 kB / 385.5 MB, free: 4.355 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001528/0.1869, allocations: 140.2 kB / 385.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1869, allocations: 0 / 385.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003858/0.1873, allocations: 72 kB / 385.7 MB, free: 4.148 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.0003061/0.1876, allocations: 125 kB / 385.8 MB, free: 4.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.1887, allocations: 0.5411 MB / 386.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.1887, allocations: 0 / 386.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006548/0.1894, allocations: 398.6 kB / 386.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008026/0.1902, allocations: 144 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.001183/0.1914, allocations: 0.5256 MB / 387.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004373/0.1918, allocations: 0.7445 MB / 388.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002485/0.1921, allocations: 57.88 kB / 388.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.352e-05/0.1922, allocations: 19.44 kB / 388.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1922, allocations: 0 / 388.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of Templates: time 0.01069/0.2029, allocations: 4.276 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)