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.001276/0.001276, allocations: 91.77 kB / 16.31 MB, free: 5.559 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.001493/0.001493, allocations: 179.3 kB / 17.21 MB, free: 5.48 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.864/1.864, allocations: 205.4 MB / 223.4 MB, free: 13.14 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.0005551/0.0005552, allocations: 8 kB / 280.1 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1218, allocations: 47.58 MB / 327.7 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002773/0.1246, allocations: 1.963 MB / 329.7 MB, free: 2.098 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.1261, allocations: 0.6752 MB / 330.4 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.1264, allocations: 0 / 330.4 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.1265, allocations: 23.84 kB / 330.4 MB, free: 1.391 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.1267, allocations: 47.55 kB / 330.4 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004024/0.1271, allocations: 63.92 kB / 330.5 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003079/0.1274, allocations: 242.9 kB / 330.7 MB, free: 1.043 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002057/0.1277, allocations: 89.2 kB / 330.8 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.1279, allocations: 87.7 kB / 330.9 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.1281, allocations: 95.58 kB / 331 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.471e-05/0.1281, allocations: 8 kB / 331 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.855e-05/0.1282, allocations: 12 kB / 331 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.95e-05/0.1283, allocations: 39.84 kB / 331.1 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.194e-05/0.1283, allocations: 65.58 kB / 331.1 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002419/0.1286, allocations: 199.7 kB / 331.3 MB, free: 468 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1286, allocations: 0 / 331.3 MB, free: 468 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1286, allocations: 0 / 331.3 MB, free: 468 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.1286, allocations: 4 kB / 331.3 MB, free: 464 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.00104/0.1297, allocations: 0.6324 MB / 331.9 MB, free: 15.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.1297, allocations: 15.97 kB / 332 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.431e-05/0.1298, allocations: 35.61 kB / 332 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.1302, allocations: 235.4 kB / 332.2 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.1303, allocations: 49.66 kB / 332.3 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.1303, allocations: 20 kB / 332.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006278/0.131, allocations: 268.1 kB / 332.6 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.131, allocations: 0 / 332.6 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.131, allocations: 8 kB / 332.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.131, allocations: 4 kB / 332.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004785/0.1315, allocations: 220.2 kB / 332.8 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.1329, allocations: 0.7717 MB / 333.6 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006248/0.1336, allocations: 303.4 kB / 333.9 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00045/0.134, allocations: 233.4 kB / 334.1 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.1341, allocations: 0 / 334.1 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005725/0.1347, allocations: 329.4 kB / 334.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 4.959e-06/0.1347, allocations: 3.938 kB / 334.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001168/0.1358, allocations: 0.5915 MB / 335 MB, free: 12.53 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.136, allocations: 199.9 kB / 335.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.1362, allocations: 183.2 kB / 335.4 MB, free: 12.1 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.1362, allocations: 37.7 kB / 335.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.949e-05/0.1363, allocations: 132.8 kB / 335.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.832e-05/0.1364, allocations: 82.92 kB / 335.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.913e-05/0.1365, allocations: 8 kB / 335.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1366, allocations: 330.8 kB / 336 MB, free: 11.5 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.1369, allocations: 124.6 kB / 336.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.1372, allocations: 171.3 kB / 336.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.1375, allocations: 213.8 kB / 336.5 MB, free: 10.96 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1375, allocations: 4 kB / 336.5 MB, free: 10.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007482/0.1383, allocations: 458.2 kB / 336.9 MB, free: 10.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.755e-05/0.1384, allocations: 97.09 kB / 337 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1384, allocations: 0 / 337 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.1384, allocations: 4 kB / 337 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.1386, allocations: 44 kB / 337 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.1386, allocations: 4.188 kB / 337 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.1388, allocations: 35.73 kB / 337.1 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.1389, allocations: 19.94 kB / 337.1 MB, free: 10.27 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 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],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],$whenCondition3,$whenCondition1,$whenCondition2,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,dA_Converter.trig,$PRE.dA_Converter.vout,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003028/0.1392, allocations: 247.6 kB / 337.3 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.541e-05/0.1392, allocations: 23.81 kB / 337.4 MB, free: 9.98 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.949e-05/0.1393, allocations: 18.66 kB / 337.4 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1393, allocations: 4 kB / 337.4 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.1393, allocations: 0 / 337.4 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.1393, allocations: 3.984 kB / 337.4 MB, free: 9.949 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.1409, allocations: 0.9512 MB / 338.3 MB, free: 8.926 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1409, allocations: 0 / 338.3 MB, free: 8.926 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.141, allocations: 27.92 kB / 338.4 MB, free: 8.898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.745e-06/0.141, allocations: 4 kB / 338.4 MB, free: 8.895 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.807e-05/0.1411, allocations: 15.94 kB / 338.4 MB, free: 8.879 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.1411, allocations: 0 / 338.4 MB, free: 8.879 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.1411, allocations: 0 / 338.4 MB, free: 8.879 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.1421, allocations: 0.6332 MB / 339 MB, free: 8.215 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.703e-05/0.1422, allocations: 96.77 kB / 339.1 MB, free: 8.102 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.886e-05/0.1423, allocations: 23.94 kB / 339.1 MB, free: 8.078 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.1425, allocations: 23.98 kB / 339.2 MB, free: 8.055 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.1427, allocations: 27.95 kB / 339.2 MB, free: 8.027 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.1427, allocations: 8 kB / 339.2 MB, free: 8.02 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000125/0.1428, allocations: 127.2 kB / 339.3 MB, free: 7.895 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1428, allocations: 0 / 339.3 MB, free: 7.895 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003834/0.1432, allocations: 79.84 kB / 339.4 MB, free: 7.816 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001967/0.1434, allocations: 128.7 kB / 339.5 MB, free: 7.676 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008868/0.1443, allocations: 0.5565 MB / 340.1 MB, free: 7.082 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1443, allocations: 0 / 340.1 MB, free: 7.082 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004924/0.1448, allocations: 410.9 kB / 340.5 MB, free: 6.656 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006529/0.1455, allocations: 128.3 kB / 340.6 MB, free: 6.531 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.1466, allocations: 0.5976 MB / 341.2 MB, free: 5.91 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005174/0.1471, allocations: 0.7451 MB / 342 MB, free: 5.141 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001913/0.1473, allocations: 49.89 kB / 342 MB, free: 5.094 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.416e-05/0.1474, allocations: 19.44 kB / 342 MB, free: 5.074 MB / 286.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1474, allocations: 4 kB / 342 MB, free: 5.07 MB / 286.1 MB Notification: Performance of Templates: time 0.009357/0.1568, allocations: 3.847 MB / 345.9 MB, free: 1.23 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)