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.008474/0.008475, allocations: 106.2 kB / 15.74 MB, free: 6 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.001665/0.001665, allocations: 199 kB / 16.68 MB, free: 5.918 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.917/1.917, allocations: 205.1 MB / 222.5 MB, free: 4.324 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.001393/0.001393, allocations: 54.22 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1661, allocations: 46.61 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.005078/0.1712, allocations: 2.318 MB / 375.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.1729, allocations: 0.7211 MB / 376.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.173, allocations: 8 kB / 376.2 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000198/0.1733, allocations: 39.64 kB / 376.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001185/0.1734, allocations: 47.5 kB / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004832/0.1739, allocations: 95.75 kB / 376.4 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004258/0.1743, allocations: 263 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003006/0.1747, allocations: 118.9 kB / 376.8 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002711/0.1749, allocations: 115.6 kB / 376.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.1752, allocations: 111.6 kB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.358e-05/0.1752, allocations: 24 kB / 377 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.452e-05/0.1753, allocations: 28 kB / 377 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.1754, allocations: 47.83 kB / 377.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001898/0.1756, allocations: 127.3 kB / 377.2 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004558/0.1761, allocations: 275.1 kB / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.1761, allocations: 0 / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1761, allocations: 0 / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.978e-06/0.1761, allocations: 0 / 377.5 MB, free: 12.95 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.001549/0.1777, allocations: 0.6717 MB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.63e-05/0.1778, allocations: 8.031 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.1779, allocations: 28.66 kB / 378.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006207/0.1785, allocations: 236.6 kB / 378.4 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.1787, allocations: 50.25 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.89e-05/0.1787, allocations: 20.38 kB / 378.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006243/0.1793, allocations: 260.3 kB / 378.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.1794, allocations: 0 / 378.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.677e-05/0.1794, allocations: 8 kB / 378.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.632e-05/0.1794, allocations: 4 kB / 378.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005013/0.1799, allocations: 204.1 kB / 379 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.1814, allocations: 0.7677 MB / 379.7 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/0.1821, allocations: 291.2 kB / 380 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004334/0.1825, allocations: 228.9 kB / 380.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.1826, allocations: 4 kB / 380.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005692/0.1831, allocations: 320.2 kB / 380.5 MB, free: 9.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.944e-06/0.1832, allocations: 0 / 380.5 MB, free: 9.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001235/0.1844, allocations: 0.5708 MB / 381.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/0.1846, allocations: 199.9 kB / 381.3 MB, free: 8.836 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001934/0.1848, allocations: 187 kB / 381.5 MB, free: 8.645 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.1848, allocations: 45.69 kB / 381.5 MB, free: 8.594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.1849, allocations: 124.8 kB / 381.7 MB, free: 8.469 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.177e-05/0.185, allocations: 78.98 kB / 381.7 MB, free: 8.391 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.1851, allocations: 74.02 kB / 381.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.1853, allocations: 338.8 kB / 382.1 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002367/0.1856, allocations: 108.6 kB / 382.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002963/0.1859, allocations: 179 kB / 382.4 MB, free: 7.664 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005818/0.1865, allocations: 417.5 kB / 382.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1865, allocations: 0 / 382.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007268/0.1872, allocations: 442.3 kB / 383.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.1873, allocations: 97.09 kB / 383.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.1874, allocations: 7.938 kB / 383.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.1874, allocations: 4.094 kB / 383.4 MB, free: 6.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.1876, allocations: 35.92 kB / 383.4 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.1876, allocations: 4 kB / 383.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.1879, allocations: 35.73 kB / 383.4 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.848e-05/0.1879, allocations: 12 kB / 383.5 MB, free: 6.539 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.0003028/0.1882, allocations: 235.8 kB / 383.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.229e-05/0.1883, allocations: 23.81 kB / 383.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.286e-05/0.1883, allocations: 30.58 kB / 383.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1883, allocations: 3.938 kB / 383.7 MB, free: 6.227 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.1884, allocations: 3.938 kB / 383.7 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.1884, allocations: 0 / 383.7 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/0.1899, allocations: 0.9394 MB / 384.7 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1899, allocations: 192 / 384.7 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.19, allocations: 19.98 kB / 384.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.19, allocations: 3.938 kB / 384.7 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.729e-05/0.1901, allocations: 15.98 kB / 384.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.1901, allocations: 0 / 384.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.1901, allocations: 11.95 kB / 384.7 MB, free: 5.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.1911, allocations: 0.6009 MB / 385.3 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.113e-05/0.1912, allocations: 104.8 kB / 385.4 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.177e-05/0.1913, allocations: 16 kB / 385.5 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.1915, allocations: 23.97 kB / 385.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.1917, allocations: 19.98 kB / 385.5 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.464e-05/0.1917, allocations: 11.98 kB / 385.5 MB, free: 4.336 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001491/0.1919, allocations: 132.2 kB / 385.6 MB, free: 4.207 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1919, allocations: 0 / 385.6 MB, free: 4.207 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004196/0.1923, allocations: 72 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.0002404/0.1926, allocations: 136.9 kB / 385.8 MB, free: 3.996 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009527/0.1935, allocations: 0.5331 MB / 386.4 MB, free: 3.426 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.1935, allocations: 0 / 386.4 MB, free: 3.426 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000534/0.1941, allocations: 402.6 kB / 386.8 MB, free: 3.008 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000774/0.1949, allocations: 144.2 kB / 386.9 MB, free: 2.867 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.1961, allocations: 0.5333 MB / 387.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005078/0.1967, allocations: 0.7445 MB / 388.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001724/0.1968, allocations: 53.88 kB / 388.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.35e-05/0.1969, allocations: 19.44 kB / 388.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1969, allocations: 0 / 388.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of Templates: time 0.009733/0.2067, allocations: 4.276 MB / 392.5 MB, free: 13.17 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)