Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.006634/0.006634, allocations: 104.1 kB / 15.74 MB, free: 6.02 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.001265/0.001265, allocations: 188.9 kB / 16.67 MB, free: 5.941 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.698/1.698, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001286/0.001286, allocations: 53.7 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1593, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004418/0.1638, allocations: 2.322 MB / 375.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.1652, allocations: 0.7172 MB / 376.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.1654, allocations: 0 / 376.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.1656, allocations: 35.7 kB / 376.2 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001112/0.1657, allocations: 51.52 kB / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003606/0.1661, allocations: 91.69 kB / 376.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003521/0.1664, allocations: 271.1 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002724/0.1667, allocations: 115 kB / 376.8 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/0.1669, allocations: 119.5 kB / 376.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001805/0.1671, allocations: 107.6 kB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.801e-05/0.1672, allocations: 20 kB / 377 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.617e-05/0.1672, allocations: 24 kB / 377 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.731e-05/0.1673, allocations: 63.81 kB / 377.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.1675, allocations: 115.4 kB / 377.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004121/0.1679, allocations: 290.7 kB / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.1679, allocations: 0 / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1679, allocations: 0 / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.1679, allocations: 4 kB / 377.5 MB, free: 12.94 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.001252/0.1692, allocations: 0.6676 MB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.1692, allocations: 12.03 kB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.798e-05/0.1693, allocations: 32.75 kB / 378.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004216/0.1698, allocations: 240.7 kB / 378.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.1699, allocations: 54.25 kB / 378.5 MB, free: 11.83 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.794e-05/0.1699, allocations: 16.38 kB / 378.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006159/0.1705, allocations: 264.2 kB / 378.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.1706, allocations: 0 / 378.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.1706, allocations: 12 kB / 378.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.1706, allocations: 4 kB / 378.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005165/0.1711, allocations: 200.1 kB / 379 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.1726, allocations: 0.7601 MB / 379.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006053/0.1733, allocations: 299.1 kB / 380 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004333/0.1737, allocations: 225 kB / 380.2 MB, free: 9.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.1737, allocations: 7.938 kB / 380.3 MB, free: 9.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005048/0.1742, allocations: 312.3 kB / 380.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.503e-06/0.1743, allocations: 4 kB / 380.6 MB, free: 9.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001164/0.1754, allocations: 0.5672 MB / 381.1 MB, free: 9.059 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/0.1756, allocations: 207.8 kB / 381.3 MB, free: 8.812 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.1758, allocations: 187.1 kB / 381.5 MB, free: 8.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.1758, allocations: 37.69 kB / 381.6 MB, free: 8.578 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.176, allocations: 132.9 kB / 381.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.174e-05/0.1761, allocations: 87.31 kB / 381.8 MB, free: 8.359 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.1762, allocations: 74.02 kB / 381.8 MB, free: 8.277 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1763, allocations: 330.8 kB / 382.2 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.1765, allocations: 104.6 kB / 382.3 MB, free: 7.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003206/0.1769, allocations: 175.1 kB / 382.4 MB, free: 7.648 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005569/0.1774, allocations: 421.3 kB / 382.9 MB, free: 7.188 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1775, allocations: 0 / 382.9 MB, free: 7.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006857/0.1781, allocations: 438.5 kB / 383.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.437e-05/0.1782, allocations: 97.09 kB / 383.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.1783, allocations: 3.938 kB / 383.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.1783, allocations: 4 kB / 383.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.1785, allocations: 44.02 kB / 383.4 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.1785, allocations: 4 kB / 383.4 MB, free: 6.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.1787, allocations: 31.83 kB / 383.5 MB, free: 6.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.1787, allocations: 8 kB / 383.5 MB, free: 6.527 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.0003409/0.1791, allocations: 251.7 kB / 383.7 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.808e-05/0.1791, allocations: 23.86 kB / 383.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.595e-05/0.1792, allocations: 30.58 kB / 383.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1792, allocations: 7.938 kB / 383.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1792, allocations: 0 / 383.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1792, allocations: 0 / 383.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001424/0.1807, allocations: 0.9279 MB / 384.7 MB, free: 5.195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.1807, allocations: 3.938 kB / 384.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.1808, allocations: 24.17 kB / 384.7 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1808, allocations: 0 / 384.7 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.1809, allocations: 15.92 kB / 384.7 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1809, allocations: 0 / 384.7 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1809, allocations: 8 kB / 384.8 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009401/0.1818, allocations: 0.6048 MB / 385.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.966e-05/0.1819, allocations: 100.9 kB / 385.5 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.832e-05/0.182, allocations: 20 kB / 385.5 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.1822, allocations: 23.97 kB / 385.5 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.368e-05/0.1823, allocations: 15.98 kB / 385.5 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/0.1823, allocations: 15.98 kB / 385.5 MB, free: 4.316 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001402/0.1825, allocations: 136.2 kB / 385.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1825, allocations: 0 / 385.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003372/0.1828, allocations: 75.95 kB / 385.7 MB, free: 4.109 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.0002083/0.183, allocations: 128.9 kB / 385.9 MB, free: 3.977 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008773/0.1839, allocations: 0.541 MB / 386.4 MB, free: 3.398 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.1839, allocations: 4.062 kB / 386.4 MB, free: 3.395 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005271/0.1845, allocations: 394.6 kB / 386.8 MB, free: 2.984 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007357/0.1852, allocations: 144.8 kB / 386.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.1863, allocations: 0.54 MB / 387.5 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.1867, allocations: 0.7445 MB / 388.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001392/0.1868, allocations: 49.89 kB / 388.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.931e-05/0.1869, allocations: 23.44 kB / 388.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1869, allocations: 0 / 388.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of Templates: time 0.008223/0.1951, allocations: 4.283 MB / 392.6 MB, free: 13.13 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1)