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.001315/0.001315, allocations: 106.8 kB / 16.62 MB, free: 6.812 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.001249/0.001249, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.495/1.495, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.002229/0.002229, allocations: 47.94 kB / 279.5 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1688, allocations: 46.63 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.005636/0.1746, allocations: 2.383 MB / 328.5 MB, free: 2.387 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.1764, allocations: 0.6982 MB / 329.2 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.1766, allocations: 0 / 329.2 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002393/0.1769, allocations: 31.77 kB / 329.2 MB, free: 1.648 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.177, allocations: 43.62 kB / 329.3 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004335/0.1775, allocations: 79.86 kB / 329.4 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000435/0.1779, allocations: 271 kB / 329.6 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000339/0.1783, allocations: 107 kB / 329.7 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002787/0.1786, allocations: 111.6 kB / 329.8 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002315/0.1788, allocations: 119.5 kB / 330 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.025e-05/0.1789, allocations: 20 kB / 330 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.639e-05/0.179, allocations: 24 kB / 330 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.603e-05/0.1791, allocations: 51.83 kB / 330.1 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002084/0.1793, allocations: 127.4 kB / 330.2 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004482/0.1797, allocations: 275.3 kB / 330.4 MB, free: 452 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.1798, allocations: 4 kB / 330.5 MB, free: 448 kB / 270.1 MB Notification: Performance of FrontEnd: time 3.536e-06/0.1798, allocations: 0 / 330.5 MB, free: 448 kB / 270.1 MB Notification: Performance of Transformations before backend: time 9.118e-06/0.1798, allocations: 0 / 330.5 MB, free: 448 kB / 270.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.001553/0.1814, allocations: 0.6753 MB / 331.1 MB, free: 15.69 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.566e-05/0.1814, allocations: 8.031 kB / 331.1 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.1816, allocations: 24.66 kB / 331.2 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004398/0.182, allocations: 244.6 kB / 331.4 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/0.1821, allocations: 46.27 kB / 331.4 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/0.1822, allocations: 16.38 kB / 331.5 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009271/0.1831, allocations: 264.2 kB / 331.7 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.1832, allocations: 4 kB / 331.7 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.366e-05/0.1832, allocations: 11.98 kB / 331.7 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.1832, allocations: 4 kB / 331.7 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006804/0.1839, allocations: 196.3 kB / 331.9 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.1857, allocations: 0.7678 MB / 332.7 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008541/0.1866, allocations: 291.2 kB / 333 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006261/0.1873, allocations: 228.9 kB / 333.2 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.1873, allocations: 0 / 333.2 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007316/0.188, allocations: 316.3 kB / 333.5 MB, free: 13.15 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.954e-06/0.1881, allocations: 0 / 333.5 MB, free: 13.15 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001709/0.1898, allocations: 0.5747 MB / 334.1 MB, free: 12.56 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001722/0.19, allocations: 203.9 kB / 334.3 MB, free: 12.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.1902, allocations: 176 kB / 334.5 MB, free: 12.14 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.906e-05/0.1903, allocations: 41.7 kB / 334.5 MB, free: 12.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.1904, allocations: 136.6 kB / 334.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.1906, allocations: 79.08 kB / 334.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.1907, allocations: 66.03 kB / 334.8 MB, free: 11.8 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.1909, allocations: 334.8 kB / 335.1 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003531/0.1913, allocations: 108.6 kB / 335.2 MB, free: 11.36 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004052/0.1917, allocations: 171.1 kB / 335.4 MB, free: 11.17 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008165/0.1925, allocations: 417.5 kB / 335.8 MB, free: 10.71 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1925, allocations: 4 kB / 335.8 MB, free: 10.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001013/0.1936, allocations: 442.2 kB / 336.2 MB, free: 10.25 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.1937, allocations: 97.09 kB / 336.3 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.1937, allocations: 7.922 kB / 336.3 MB, free: 10.13 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.855e-05/0.1938, allocations: 8 kB / 336.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.194, allocations: 35.92 kB / 336.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.1941, allocations: 0 / 336.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.1944, allocations: 39.73 kB / 336.4 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.379e-05/0.1944, allocations: 8 kB / 336.4 MB, free: 10.04 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.0003792/0.1948, allocations: 247.8 kB / 336.7 MB, free: 9.777 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.22e-05/0.1949, allocations: 23.72 kB / 336.7 MB, free: 9.754 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.243e-05/0.195, allocations: 26.58 kB / 336.7 MB, free: 9.727 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.195, allocations: 0 / 336.7 MB, free: 9.727 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.195, allocations: 7.938 kB / 336.7 MB, free: 9.719 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.195, allocations: 0 / 336.7 MB, free: 9.719 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/0.197, allocations: 0.9319 MB / 337.6 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.1971, allocations: 0 / 337.6 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.1972, allocations: 24.11 kB / 337.7 MB, free: 8.691 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.1972, allocations: 4 kB / 337.7 MB, free: 8.688 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/0.1973, allocations: 15.92 kB / 337.7 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.1973, allocations: 0 / 337.7 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1973, allocations: 0 / 337.7 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.1986, allocations: 0.6167 MB / 338.3 MB, free: 8.023 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.863e-05/0.1987, allocations: 96.86 kB / 338.4 MB, free: 7.91 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.566e-05/0.1988, allocations: 15.98 kB / 338.4 MB, free: 7.895 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/0.1992, allocations: 27.98 kB / 338.4 MB, free: 7.867 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.1993, allocations: 19.97 kB / 338.5 MB, free: 7.848 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.1993, allocations: 15.98 kB / 338.5 MB, free: 7.832 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001712/0.1995, allocations: 131.2 kB / 338.6 MB, free: 7.703 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1995, allocations: 0 / 338.6 MB, free: 7.703 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006069/0.2001, allocations: 75.84 kB / 338.7 MB, free: 7.629 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.0002591/0.2004, allocations: 133 kB / 338.8 MB, free: 7.484 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.2018, allocations: 0.5682 MB / 339.4 MB, free: 6.879 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.2018, allocations: 0 / 339.4 MB, free: 6.879 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006577/0.2025, allocations: 411 kB / 339.8 MB, free: 6.453 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.2035, allocations: 133.8 kB / 339.9 MB, free: 6.324 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.205, allocations: 0.6031 MB / 340.5 MB, free: 5.695 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005392/0.2056, allocations: 0.7523 MB / 341.3 MB, free: 4.918 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002438/0.2059, allocations: 49.89 kB / 341.3 MB, free: 4.871 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.799e-05/0.206, allocations: 19.44 kB / 341.3 MB, free: 4.852 MB / 286.1 MB Notification: Performance of SimCode: time 1.473e-06/0.206, allocations: 0 / 341.3 MB, free: 4.852 MB / 286.1 MB Notification: Performance of Templates: time 0.0113/0.2173, allocations: 4.205 MB / 345.5 MB, free: 0.6562 MB / 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)