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.001042/0.001041, allocations: 92 kB / 15.06 MB, free: 1.098 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.001218/0.001219, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.621/1.621, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0005187/0.000519, allocations: 16 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2629, allocations: 47.58 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002459/0.2654, allocations: 1.961 MB / 328.4 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.2668, allocations: 0.6739 MB / 329.1 MB, free: 15.31 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.2669, allocations: 7.219 kB / 329.1 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.2671, allocations: 22 kB / 329.1 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.2672, allocations: 50.05 kB / 329.2 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.2676, allocations: 58.19 kB / 329.2 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003656/0.268, allocations: 245.8 kB / 329.5 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002373/0.2682, allocations: 79.8 kB / 329.6 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002563/0.2685, allocations: 90.59 kB / 329.6 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.2687, allocations: 94.72 kB / 329.7 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.845e-05/0.2688, allocations: 10.19 kB / 329.7 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.242e-05/0.2688, allocations: 10.91 kB / 329.8 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.838e-05/0.2689, allocations: 38.09 kB / 329.8 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.908e-05/0.269, allocations: 66.08 kB / 329.9 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002396/0.2692, allocations: 210.5 kB / 330.1 MB, free: 14.66 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.2692, allocations: 0 / 330.1 MB, free: 14.66 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2692, allocations: 0 / 330.1 MB, free: 14.66 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.2693, allocations: 1.438 kB / 330.1 MB, free: 14.66 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.001081/0.2703, allocations: 0.6264 MB / 330.7 MB, free: 14.07 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.2704, allocations: 9.094 kB / 330.7 MB, free: 14.07 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.2705, allocations: 33.94 kB / 330.7 MB, free: 14.05 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003751/0.2709, allocations: 243 kB / 331 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.271, allocations: 52.22 kB / 331 MB, free: 13.76 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.2711, allocations: 22.14 kB / 331 MB, free: 13.75 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006893/0.2718, allocations: 260.8 kB / 331.3 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.2718, allocations: 0 / 331.3 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.895e-05/0.2719, allocations: 11.62 kB / 331.3 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.2719, allocations: 4.188 kB / 331.3 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005226/0.2724, allocations: 213.9 kB / 331.5 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001469/0.2739, allocations: 0.768 MB / 332.3 MB, free: 12.87 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006534/0.2746, allocations: 309.7 kB / 332.6 MB, free: 12.71 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004531/0.275, allocations: 236.4 kB / 332.8 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.2751, allocations: 1.875 kB / 332.8 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005418/0.2756, allocations: 324.5 kB / 333.1 MB, free: 12.37 MB / 270.1 MB Notification: Performance of pre-optimization done (n=31): time 2.124e-06/0.2756, allocations: 0 / 333.1 MB, free: 12.37 MB / 270.1 MB Notification: Performance of matching and sorting (n=31): time 0.001255/0.2769, allocations: 0.5951 MB / 333.7 MB, free: 11.99 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.277, allocations: 199.9 kB / 333.9 MB, free: 11.75 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.2772, allocations: 183.2 kB / 334.1 MB, free: 11.57 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.2773, allocations: 37.7 kB / 334.2 MB, free: 11.52 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.2774, allocations: 140.7 kB / 334.3 MB, free: 11.38 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.191e-05/0.2775, allocations: 82.92 kB / 334.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.581e-05/0.2775, allocations: 4 kB / 334.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2776, allocations: 334.8 kB / 334.7 MB, free: 10.96 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002436/0.2779, allocations: 116.6 kB / 334.8 MB, free: 10.84 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002841/0.2782, allocations: 175.3 kB / 335 MB, free: 10.65 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003477/0.2785, allocations: 221.8 kB / 335.2 MB, free: 10.41 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2785, allocations: 0 / 335.2 MB, free: 10.41 MB / 270.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007286/0.2793, allocations: 454.1 kB / 335.6 MB, free: 9.945 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.756e-05/0.2794, allocations: 97.09 kB / 335.7 MB, free: 9.832 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2794, allocations: 0 / 335.7 MB, free: 9.832 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.2794, allocations: 4 kB / 335.7 MB, free: 9.828 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.2796, allocations: 39.91 kB / 335.8 MB, free: 9.789 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.2796, allocations: 4 kB / 335.8 MB, free: 9.785 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000204/0.2798, allocations: 43.77 kB / 335.8 MB, free: 9.742 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.2799, allocations: 15.98 kB / 335.8 MB, free: 9.727 MB / 270.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.0002393/0.2801, allocations: 247.6 kB / 336.1 MB, free: 9.465 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.08e-05/0.2802, allocations: 19.81 kB / 336.1 MB, free: 9.445 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.417e-05/0.2802, allocations: 26.66 kB / 336.1 MB, free: 9.414 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.2802, allocations: 4 kB / 336.1 MB, free: 9.41 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2803, allocations: 0 / 336.1 MB, free: 9.41 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.2803, allocations: 3.984 kB / 336.1 MB, free: 9.406 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.2817, allocations: 0.9434 MB / 337.1 MB, free: 8.391 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.2817, allocations: 8 kB / 337.1 MB, free: 8.383 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.2818, allocations: 23.98 kB / 337.1 MB, free: 8.359 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.2818, allocations: 0 / 337.1 MB, free: 8.359 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/0.2819, allocations: 15.89 kB / 337.1 MB, free: 8.344 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.2819, allocations: 4 kB / 337.1 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2819, allocations: 0 / 337.1 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009273/0.2828, allocations: 0.6256 MB / 337.8 MB, free: 7.684 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.044e-05/0.2829, allocations: 108.7 kB / 337.9 MB, free: 7.559 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.324e-05/0.283, allocations: 19.94 kB / 337.9 MB, free: 7.539 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.2832, allocations: 28.17 kB / 337.9 MB, free: 7.512 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.578e-05/0.2833, allocations: 23.95 kB / 337.9 MB, free: 7.488 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.2833, allocations: 11.94 kB / 337.9 MB, free: 7.477 MB / 270.1 MB Notification: Performance of sorting global known variables: time 9.597e-05/0.2834, allocations: 127.2 kB / 338.1 MB, free: 7.352 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2834, allocations: 4 kB / 338.1 MB, free: 7.348 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003449/0.2838, allocations: 71.91 kB / 338.1 MB, free: 7.277 MB / 270.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.0001661/0.2839, allocations: 140.6 kB / 338.3 MB, free: 7.125 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0008471/0.2848, allocations: 0.5527 MB / 338.8 MB, free: 6.535 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2848, allocations: 0 / 338.8 MB, free: 6.535 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005359/0.2853, allocations: 410.9 kB / 339.2 MB, free: 6.109 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006692/0.286, allocations: 135.7 kB / 339.4 MB, free: 5.977 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.2871, allocations: 0.5981 MB / 340 MB, free: 5.355 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003735/0.2875, allocations: 0.7409 MB / 340.7 MB, free: 4.59 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001675/0.2876, allocations: 49.89 kB / 340.8 MB, free: 4.543 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.907e-05/0.2877, allocations: 19.44 kB / 340.8 MB, free: 4.523 MB / 270.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2877, allocations: 4 kB / 340.8 MB, free: 4.52 MB / 270.1 MB Notification: Performance of Templates: time 0.007777/0.2955, allocations: 3.836 MB / 344.6 MB, free: 0.6836 MB / 270.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)