Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.0008192/0.0008193, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0009545/0.0009548, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.816/1.816, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.000564/0.0005641, allocations: 16 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1636, allocations: 47.59 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003269/0.167, allocations: 2.028 MB / 330.3 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.1686, allocations: 0.6944 MB / 331 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.1687, allocations: 7.938 kB / 331 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.1689, allocations: 19.84 kB / 331.1 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.1691, allocations: 47.61 kB / 331.1 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000367/0.1695, allocations: 79.86 kB / 331.2 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003232/0.1698, allocations: 250.9 kB / 331.4 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003312/0.1701, allocations: 94.94 kB / 331.5 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002604/0.1704, allocations: 91.62 kB / 331.6 MB, free: 444 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.1706, allocations: 99.53 kB / 331.7 MB, free: 344 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.991e-05/0.1707, allocations: 16 kB / 331.7 MB, free: 328 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.193e-05/0.1707, allocations: 8 kB / 331.7 MB, free: 320 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.616e-05/0.1708, allocations: 39.84 kB / 331.8 MB, free: 280 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001844/0.171, allocations: 137 kB / 331.9 MB, free: 136 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000441/0.1714, allocations: 255.5 kB / 332.2 MB, free: 15.88 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.1714, allocations: 0 / 332.2 MB, free: 15.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1715, allocations: 0 / 332.2 MB, free: 15.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.1715, allocations: 0 / 332.2 MB, free: 15.88 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001493/0.173, allocations: 0.6402 MB / 332.8 MB, free: 15.17 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.458e-05/0.1731, allocations: 8.031 kB / 332.8 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.493e-05/0.1732, allocations: 32.56 kB / 332.8 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004324/0.1736, allocations: 236.6 kB / 333.1 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.1737, allocations: 46.27 kB / 333.1 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.249e-05/0.1738, allocations: 32.3 kB / 333.2 MB, free: 14.78 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008468/0.1747, allocations: 260.3 kB / 333.4 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.1747, allocations: 0 / 333.4 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.182e-05/0.1747, allocations: 4 kB / 333.4 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.1748, allocations: 12 kB / 333.4 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005544/0.1753, allocations: 216.3 kB / 333.6 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001782/0.1771, allocations: 0.7717 MB / 334.4 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007654/0.1779, allocations: 307.2 kB / 334.7 MB, free: 13.15 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004726/0.1784, allocations: 240.8 kB / 334.9 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.407e-05/0.1784, allocations: 4 kB / 334.9 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006024/0.179, allocations: 316.3 kB / 335.3 MB, free: 12.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 2.064e-06/0.1791, allocations: 0 / 335.3 MB, free: 12.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001383/0.1805, allocations: 0.5942 MB / 335.8 MB, free: 11.96 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/0.1806, allocations: 203.9 kB / 336 MB, free: 11.71 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.1808, allocations: 183.9 kB / 336.2 MB, free: 11.53 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.916e-05/0.1809, allocations: 41.69 kB / 336.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.181, allocations: 132.8 kB / 336.4 MB, free: 11.35 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.38e-05/0.1811, allocations: 75.02 kB / 336.5 MB, free: 11.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.49e-05/0.1812, allocations: 45.69 kB / 336.5 MB, free: 11.22 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002214/0.1814, allocations: 334.8 kB / 336.8 MB, free: 10.89 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.1817, allocations: 112.6 kB / 336.9 MB, free: 10.77 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003108/0.182, allocations: 179.1 kB / 337.1 MB, free: 10.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005983/0.1826, allocations: 425.5 kB / 337.5 MB, free: 10.11 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.1826, allocations: 0 / 337.5 MB, free: 10.11 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007373/0.1834, allocations: 462.1 kB / 338 MB, free: 9.633 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-05/0.1835, allocations: 89.09 kB / 338.1 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.1835, allocations: 7.938 kB / 338.1 MB, free: 9.52 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.1836, allocations: 8.078 kB / 338.1 MB, free: 9.512 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.1838, allocations: 43.92 kB / 338.1 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.1838, allocations: 0 / 338.1 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/0.184, allocations: 39.73 kB / 338.2 MB, free: 9.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/0.1841, allocations: 12 kB / 338.2 MB, free: 9.418 MB / 286.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.0002977/0.1844, allocations: 235.8 kB / 338.4 MB, free: 9.164 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.435e-05/0.1844, allocations: 27.72 kB / 338.4 MB, free: 9.137 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.158e-05/0.1845, allocations: 30.58 kB / 338.5 MB, free: 9.102 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.1845, allocations: 0 / 338.5 MB, free: 9.102 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.1845, allocations: 3.938 kB / 338.5 MB, free: 9.098 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1845, allocations: 4 kB / 338.5 MB, free: 9.094 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.186, allocations: 0.9474 MB / 339.4 MB, free: 8.074 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.186, allocations: 0 / 339.4 MB, free: 8.074 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.1861, allocations: 19.98 kB / 339.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1861, allocations: 0 / 339.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/0.1862, allocations: 15.98 kB / 339.5 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.1862, allocations: 0 / 339.5 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.1862, allocations: 0 / 339.5 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009492/0.1872, allocations: 0.6284 MB / 340.1 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.979e-05/0.1872, allocations: 104.8 kB / 340.2 MB, free: 7.258 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.947e-05/0.1873, allocations: 12 kB / 340.2 MB, free: 7.246 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.1875, allocations: 27.97 kB / 340.2 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.595e-05/0.1876, allocations: 19.98 kB / 340.3 MB, free: 7.199 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.1877, allocations: 19.97 kB / 340.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.1878, allocations: 135.2 kB / 340.4 MB, free: 7.047 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1878, allocations: 0 / 340.4 MB, free: 7.047 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000385/0.1882, allocations: 79.84 kB / 340.5 MB, free: 6.969 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: 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.0001842/0.1884, allocations: 128.9 kB / 340.6 MB, free: 6.828 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009552/0.1894, allocations: 0.5604 MB / 341.2 MB, free: 6.234 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1894, allocations: 4.188 kB / 341.2 MB, free: 6.23 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005033/0.1899, allocations: 402.8 kB / 341.6 MB, free: 5.812 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007897/0.1907, allocations: 140.5 kB / 341.7 MB, free: 5.676 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.1919, allocations: 0.621 MB / 342.3 MB, free: 5.031 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003946/0.1923, allocations: 0.7447 MB / 343.1 MB, free: 4.262 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001762/0.1925, allocations: 49.91 kB / 343.1 MB, free: 4.215 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.863e-05/0.1925, allocations: 27.44 kB / 343.1 MB, free: 4.188 MB / 286.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1926, allocations: 0 / 343.1 MB, free: 4.188 MB / 286.1 MB Notification: Performance of Templates: time 0.009257/0.2018, allocations: 3.977 MB / 347.1 MB, free: 224 kB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1)