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.00922/0.00922, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.002009/0.00201, allocations: 192.1 kB / 16.67 MB, free: 5.969 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.825/1.825, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001426/0.001426, allocations: 49.69 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1616, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004789/0.1664, allocations: 2.31 MB / 375.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.1686, allocations: 0.7133 MB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001794/0.1688, allocations: 4 kB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003004/0.1692, allocations: 39.64 kB / 376.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001549/0.1693, allocations: 55.48 kB / 376.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005226/0.1699, allocations: 87.77 kB / 376.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004477/0.1703, allocations: 271 kB / 376.7 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004398/0.1708, allocations: 115 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003352/0.1711, allocations: 119.6 kB / 376.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.1714, allocations: 107.6 kB / 377 MB, free: 13.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.757e-05/0.1715, allocations: 24 kB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.047e-05/0.1715, allocations: 24 kB / 377 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.1716, allocations: 51.83 kB / 377.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000204/0.1719, allocations: 123.3 kB / 377.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005325/0.1724, allocations: 290.8 kB / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.1724, allocations: 0 / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1724, allocations: 0 / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1725, allocations: 0 / 377.5 MB, free: 12.97 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.001521/0.174, allocations: 0.6754 MB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.92e-05/0.174, allocations: 8.031 kB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.1742, allocations: 32.75 kB / 378.2 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004935/0.1747, allocations: 240.7 kB / 378.4 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.1748, allocations: 46.27 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.1748, allocations: 20.38 kB / 378.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000623/0.1755, allocations: 260.3 kB / 378.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.1755, allocations: 0 / 378.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.1755, allocations: 8 kB / 378.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.1755, allocations: 8 kB / 378.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006005/0.1761, allocations: 204.1 kB / 379 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.1777, allocations: 0.7641 MB / 379.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006358/0.1784, allocations: 299.1 kB / 380 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004677/0.1788, allocations: 225 kB / 380.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.1789, allocations: 4 kB / 380.3 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006355/0.1795, allocations: 317.4 kB / 380.6 MB, free: 9.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.673e-06/0.1795, allocations: 0 / 380.6 MB, free: 9.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001372/0.1809, allocations: 0.571 MB / 381.1 MB, free: 9.082 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001984/0.1811, allocations: 203.9 kB / 381.3 MB, free: 8.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.1814, allocations: 183.1 kB / 381.5 MB, free: 8.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.036e-05/0.1814, allocations: 41.69 kB / 381.6 MB, free: 8.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.1816, allocations: 136.9 kB / 381.7 MB, free: 8.469 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.799e-05/0.1817, allocations: 83.31 kB / 381.8 MB, free: 8.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.1818, allocations: 70.02 kB / 381.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002331/0.182, allocations: 338.8 kB / 382.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002585/0.1823, allocations: 108.6 kB / 382.3 MB, free: 7.859 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003157/0.1826, allocations: 179 kB / 382.4 MB, free: 7.664 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006102/0.1833, allocations: 405.4 kB / 382.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1833, allocations: 4.031 kB / 382.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007553/0.184, allocations: 438.5 kB / 383.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.1842, allocations: 93.09 kB / 383.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.1842, allocations: 7.938 kB / 383.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.661e-05/0.1842, allocations: 0 / 383.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.1845, allocations: 48 kB / 383.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.1845, allocations: 4 kB / 383.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.1847, allocations: 35.83 kB / 383.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.55e-05/0.1847, 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.0002735/0.185, allocations: 247.6 kB / 383.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.029e-05/0.185, allocations: 27.86 kB / 383.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.399e-05/0.1851, allocations: 30.58 kB / 383.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1851, allocations: 3.938 kB / 383.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/0.1851, allocations: 0 / 383.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1852, allocations: 0 / 383.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.1867, allocations: 0.9318 MB / 384.7 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1867, allocations: 0 / 384.7 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.1869, allocations: 24.17 kB / 384.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.1869, allocations: 0 / 384.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.706e-05/0.1869, allocations: 19.92 kB / 384.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1869, allocations: 3.938 kB / 384.8 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1869, allocations: 0 / 384.8 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009913/0.1879, allocations: 0.601 MB / 385.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.188, allocations: 100.9 kB / 385.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.11e-05/0.1881, allocations: 20 kB / 385.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.1883, allocations: 23.97 kB / 385.5 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.1885, allocations: 27.97 kB / 385.5 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.1885, allocations: 8 kB / 385.5 MB, free: 4.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001328/0.1886, allocations: 132.2 kB / 385.7 MB, free: 4.211 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1886, allocations: 0 / 385.7 MB, free: 4.211 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003905/0.189, allocations: 75.95 kB / 385.7 MB, free: 4.137 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.0002483/0.1893, allocations: 136.9 kB / 385.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009401/0.1902, allocations: 0.5371 MB / 386.4 MB, free: 3.422 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1903, allocations: 4.188 kB / 386.4 MB, free: 3.418 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005598/0.1908, allocations: 398.6 kB / 386.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007917/0.1916, allocations: 135.9 kB / 386.9 MB, free: 2.871 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.1929, allocations: 0.5483 MB / 387.5 MB, free: 2.293 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.1933, allocations: 0.7406 MB / 388.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001665/0.1935, allocations: 49.89 kB / 388.3 MB, free: 1.477 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.739e-05/0.1936, allocations: 23.44 kB / 388.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1936, allocations: 0 / 388.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of Templates: time 0.009699/0.2033, allocations: 4.284 MB / 392.6 MB, free: 13.16 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)