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.008298/0.008298, allocations: 104.2 kB / 15.74 MB, free: 6.488 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.0016/0.0016, allocations: 199.3 kB / 16.68 MB, free: 6.375 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.728/1.728, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.00134/0.00134, allocations: 54.48 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1517, 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.00482/0.1566, allocations: 2.307 MB / 375.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001683/0.1584, allocations: 0.7211 MB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.1585, allocations: 7.938 kB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.1589, allocations: 27.72 kB / 376.2 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.159, allocations: 63.48 kB / 376.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.1595, allocations: 87.7 kB / 376.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004175/0.1599, allocations: 271 kB / 376.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000325/0.1603, allocations: 122.9 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002834/0.1606, allocations: 119.6 kB / 376.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.1608, allocations: 107.6 kB / 377 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.224e-05/0.1608, allocations: 24 kB / 377 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.478e-05/0.1609, allocations: 27.94 kB / 377 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.933e-05/0.161, allocations: 47.84 kB / 377.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000162/0.1611, allocations: 127.4 kB / 377.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003793/0.1615, allocations: 271.1 kB / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.1615, allocations: 0 / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1616, allocations: 0 / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.1616, 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.00122/0.1628, allocations: 0.6755 MB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.1629, allocations: 8.031 kB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.731e-05/0.163, allocations: 32.66 kB / 378.2 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004496/0.1634, allocations: 236.7 kB / 378.4 MB, free: 11.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.867e-05/0.1635, allocations: 50.25 kB / 378.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.88e-05/0.1636, allocations: 20.38 kB / 378.5 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006019/0.1642, allocations: 252.3 kB / 378.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.1642, allocations: 0 / 378.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.1643, allocations: 12 kB / 378.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.1643, allocations: 4 kB / 378.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005385/0.1648, allocations: 212 kB / 379 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.1666, allocations: 0.7521 MB / 379.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/0.1672, allocations: 299.2 kB / 380 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000421/0.1677, allocations: 221 kB / 380.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-05/0.1677, allocations: 7.938 kB / 380.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005078/0.1682, allocations: 328.1 kB / 380.6 MB, free: 9.676 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.804e-06/0.1683, allocations: 0 / 380.6 MB, free: 9.676 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001345/0.1696, allocations: 0.5631 MB / 381.1 MB, free: 9.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.1698, allocations: 199.9 kB / 381.3 MB, free: 8.855 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.17, allocations: 191 kB / 381.5 MB, free: 8.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.906e-05/0.17, allocations: 37.7 kB / 381.5 MB, free: 8.617 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.1702, allocations: 132.8 kB / 381.7 MB, free: 8.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.089e-05/0.1702, allocations: 78.98 kB / 381.7 MB, free: 8.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.1704, allocations: 66.03 kB / 381.8 MB, free: 8.332 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002051/0.1706, allocations: 338.8 kB / 382.1 MB, free: 7.992 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002534/0.1708, allocations: 116.6 kB / 382.2 MB, free: 7.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.1711, allocations: 171 kB / 382.4 MB, free: 7.688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005685/0.1717, allocations: 417.5 kB / 382.8 MB, free: 7.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.1717, allocations: 4 kB / 382.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006628/0.1724, allocations: 442.3 kB / 383.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.66e-05/0.1725, allocations: 93.08 kB / 383.3 MB, free: 6.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.1725, allocations: 7.938 kB / 383.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.1726, allocations: 0 / 383.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.1728, allocations: 44.02 kB / 383.4 MB, free: 6.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/0.1728, allocations: 7.938 kB / 383.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/0.173, allocations: 35.73 kB / 383.4 MB, free: 6.566 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.797e-05/0.1731, allocations: 12.19 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.0002874/0.1733, allocations: 235.8 kB / 383.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.63e-05/0.1734, allocations: 31.75 kB / 383.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.129e-05/0.1735, allocations: 30.58 kB / 383.7 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1735, allocations: 0 / 383.7 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.1735, allocations: 0 / 383.7 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.1735, allocations: 3.938 kB / 383.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.1751, allocations: 0.9355 MB / 384.7 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1751, allocations: 0 / 384.7 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.1752, allocations: 23.92 kB / 384.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.1752, allocations: 0 / 384.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.958e-05/0.1753, allocations: 15.98 kB / 384.7 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1753, allocations: 0 / 384.7 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.1753, allocations: 4 kB / 384.7 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.1763, allocations: 0.6048 MB / 385.3 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.773e-05/0.1764, allocations: 104.8 kB / 385.4 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.499e-05/0.1765, allocations: 15.98 kB / 385.5 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.1767, allocations: 19.98 kB / 385.5 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.414e-05/0.1768, allocations: 31.91 kB / 385.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.898e-05/0.1768, allocations: 11.98 kB / 385.5 MB, free: 4.348 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001122/0.177, allocations: 136.2 kB / 385.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.177, allocations: 0 / 385.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003309/0.1773, allocations: 68 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.0002/0.1775, allocations: 133 kB / 385.8 MB, free: 4.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009588/0.1785, allocations: 0.5331 MB / 386.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1785, allocations: 192 / 386.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004902/0.179, allocations: 410.5 kB / 386.8 MB, free: 3.016 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006593/0.1797, allocations: 140.7 kB / 386.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.1809, allocations: 0.525 MB / 387.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004159/0.1814, allocations: 0.7445 MB / 388.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001579/0.1815, allocations: 54.27 kB / 388.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.283e-05/0.1816, allocations: 23.42 kB / 388.3 MB, free: 1.477 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1816, allocations: 0 / 388.3 MB, free: 1.477 MB / 318.1 MB Notification: Performance of Templates: time 0.01016/0.1918, allocations: 4.283 MB / 392.5 MB, free: 13.18 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)