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.001463/0.001463, allocations: 95.08 kB / 16.3 MB, free: 6.457 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.002247/0.002246, allocations: 184.5 kB / 17.19 MB, free: 6.34 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.703/1.703, allocations: 205.4 MB / 223.3 MB, free: 13.18 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.0005074/0.0005074, allocations: 19.38 kB / 280.1 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1323, allocations: 47.58 MB / 327.7 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002778/0.1351, allocations: 1.902 MB / 329.6 MB, free: 2.188 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.1364, allocations: 0.6792 MB / 330.3 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.1366, allocations: 7.938 kB / 330.3 MB, free: 1.492 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001503/0.1368, allocations: 27.81 kB / 330.3 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000134/0.1369, allocations: 59.81 kB / 330.4 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000377/0.1373, allocations: 63.86 kB / 330.4 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002835/0.1376, allocations: 167.6 kB / 330.6 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/0.1379, allocations: 89.19 kB / 330.7 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.1381, allocations: 91.69 kB / 330.8 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.1383, allocations: 99.59 kB / 330.9 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.322e-05/0.1383, allocations: 8 kB / 330.9 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.363e-05/0.1384, allocations: 12 kB / 330.9 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.041e-05/0.1384, allocations: 39.83 kB / 330.9 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.752e-05/0.1385, allocations: 69.58 kB / 331 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.1388, allocations: 199.7 kB / 331.2 MB, free: 0.582 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1388, allocations: 0 / 331.2 MB, free: 0.582 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1388, allocations: 0 / 331.2 MB, free: 0.582 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1388, allocations: 0 / 331.2 MB, free: 0.582 MB / 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.001266/0.1401, allocations: 0.6247 MB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/0.1402, allocations: 12.03 kB / 331.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.565e-05/0.1402, allocations: 27.62 kB / 331.9 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.1406, allocations: 239.4 kB / 332.1 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.492e-05/0.1407, allocations: 57.66 kB / 332.1 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.821e-05/0.1407, allocations: 16 kB / 332.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000632/0.1414, allocations: 264.1 kB / 332.4 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.1414, allocations: 0 / 332.4 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.143e-05/0.1414, allocations: 11.94 kB / 332.4 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.1415, allocations: 8 kB / 332.4 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004903/0.1419, allocations: 212.2 kB / 332.6 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.1433, allocations: 0.7795 MB / 333.4 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005737/0.1439, allocations: 307.4 kB / 333.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.1439, allocations: 0 / 333.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005009/0.1444, allocations: 325.4 kB / 334 MB, free: 13.51 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.793e-06/0.1444, allocations: 0 / 334 MB, free: 13.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001355/0.1458, allocations: 0.7538 MB / 334.8 MB, free: 12.7 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/0.146, allocations: 203.9 kB / 335 MB, free: 12.46 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002235/0.1462, allocations: 183.9 kB / 335.2 MB, free: 12.27 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.1462, allocations: 37.7 kB / 335.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.1464, allocations: 128.8 kB / 335.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.1465, allocations: 82.94 kB / 335.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.558e-05/0.1465, allocations: 8 kB / 335.4 MB, free: 12.01 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1467, allocations: 338.9 kB / 335.8 MB, free: 11.67 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/0.147, allocations: 116.6 kB / 335.9 MB, free: 11.55 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002963/0.1473, allocations: 171.3 kB / 336 MB, free: 11.36 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/0.1477, allocations: 221.8 kB / 336.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1477, allocations: 0 / 336.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007347/0.1484, allocations: 458.5 kB / 336.7 MB, free: 10.65 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.391e-05/0.1485, allocations: 97.09 kB / 336.8 MB, free: 10.54 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.1485, allocations: 0 / 336.8 MB, free: 10.54 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.1485, allocations: 7.938 kB / 336.8 MB, free: 10.53 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002034/0.1488, allocations: 48 kB / 336.8 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.659e-06/0.1488, allocations: 4 kB / 336.9 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/0.149, allocations: 39.67 kB / 336.9 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.361e-05/0.149, allocations: 16 kB / 336.9 MB, free: 10.43 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.0002537/0.1493, allocations: 239.7 kB / 337.1 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.049e-05/0.1493, allocations: 19.81 kB / 337.2 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.313e-05/0.1494, allocations: 22.66 kB / 337.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.1494, allocations: 4 kB / 337.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.1494, allocations: 0 / 337.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1494, allocations: 3.984 kB / 337.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/0.1507, allocations: 0.9116 MB / 338.1 MB, free: 9.137 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1507, allocations: 0 / 338.1 MB, free: 9.137 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.1508, allocations: 23.98 kB / 338.1 MB, free: 9.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.1508, allocations: 3.984 kB / 338.1 MB, free: 9.109 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.1508, allocations: 12 kB / 338.1 MB, free: 9.098 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.1509, allocations: 0 / 338.1 MB, free: 9.098 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1509, allocations: 3.938 kB / 338.1 MB, free: 9.094 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009108/0.1518, allocations: 0.6273 MB / 338.8 MB, free: 8.438 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.1519, allocations: 100.8 kB / 338.9 MB, free: 8.32 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.991e-05/0.152, allocations: 19.98 kB / 338.9 MB, free: 8.301 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.1522, allocations: 23.98 kB / 338.9 MB, free: 8.277 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.198e-05/0.1523, allocations: 23.95 kB / 338.9 MB, free: 8.254 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.1523, allocations: 12 kB / 338.9 MB, free: 8.242 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001139/0.1524, allocations: 131.2 kB / 339.1 MB, free: 8.113 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1524, allocations: 0 / 339.1 MB, free: 8.113 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004515/0.1529, allocations: 75.84 kB / 339.2 MB, free: 8.039 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0002232/0.1531, allocations: 140.7 kB / 339.3 MB, free: 7.887 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009474/0.1541, allocations: 0.5571 MB / 339.8 MB, free: 7.293 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1541, allocations: 0 / 339.8 MB, free: 7.293 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000563/0.1547, allocations: 410.8 kB / 340.2 MB, free: 6.867 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006326/0.1553, allocations: 124.2 kB / 340.4 MB, free: 6.746 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009872/0.1563, allocations: 0.5929 MB / 341 MB, free: 6.133 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.1566, allocations: 0.7449 MB / 341.7 MB, free: 5.359 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001613/0.1568, allocations: 53.89 kB / 341.8 MB, free: 5.309 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.743e-05/0.1569, allocations: 27.36 kB / 341.8 MB, free: 5.281 MB / 286.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1569, allocations: 0 / 341.8 MB, free: 5.281 MB / 286.1 MB Notification: Performance of Templates: time 0.007962/0.1649, allocations: 3.81 MB / 345.6 MB, free: 1.48 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: