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.001144/0.001144, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001584/0.001584, allocations: 194.5 kB / 16.53 MB, free: 6.672 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.697/1.697, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.001299/0.001299, allocations: 52.22 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.3571, allocations: 46.64 MB / 325.3 MB, free: 1.969 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.00445/0.3616, allocations: 2.32 MB / 327.6 MB, free: 140 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.3632, allocations: 0.711 MB / 328.3 MB, free: 15.56 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.3633, allocations: 10.62 kB / 328.4 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.3635, allocations: 30.48 kB / 328.4 MB, free: 15.53 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.3636, allocations: 48.88 kB / 328.4 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003558/0.364, allocations: 93.59 kB / 328.5 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003604/0.3644, allocations: 273.4 kB / 328.8 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002751/0.3646, allocations: 109.3 kB / 328.9 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.3649, allocations: 111.7 kB / 329 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.3651, allocations: 113.3 kB / 329.1 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.076e-05/0.3651, allocations: 30 kB / 329.1 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.304e-05/0.3652, allocations: 30.03 kB / 329.2 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.3653, allocations: 52.12 kB / 329.2 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.3656, allocations: 115.2 kB / 329.3 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003594/0.3659, allocations: 272.1 kB / 329.6 MB, free: 14.71 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3659, allocations: 0 / 329.6 MB, free: 14.71 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.366, allocations: 0 / 329.6 MB, free: 14.71 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.794e-06/0.366, allocations: 0 / 329.6 MB, free: 14.71 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.3672, allocations: 0.6785 MB / 330.3 MB, free: 14.08 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/0.3673, allocations: 10.12 kB / 330.3 MB, free: 14.08 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.719e-05/0.3674, allocations: 30.22 kB / 330.3 MB, free: 14.06 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.3678, allocations: 244.3 kB / 330.6 MB, free: 13.81 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.3679, allocations: 44.45 kB / 330.6 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.912e-05/0.368, allocations: 26.48 kB / 330.6 MB, free: 13.76 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007709/0.3687, allocations: 254.4 kB / 330.9 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.3688, allocations: 0 / 330.9 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.3688, allocations: 6.656 kB / 330.9 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.3688, allocations: 4.969 kB / 330.9 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005938/0.3694, allocations: 209.7 kB / 331.1 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.371, allocations: 0.7649 MB / 331.9 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007123/0.3717, allocations: 304.5 kB / 332.2 MB, free: 12.71 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005211/0.3722, allocations: 224.9 kB / 332.4 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.058e-05/0.3723, allocations: 2.125 kB / 332.4 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006244/0.3729, allocations: 319.4 kB / 332.7 MB, free: 12.37 MB / 270.1 MB Notification: Performance of pre-optimization done (n=31): time 1.824e-06/0.3729, allocations: 5.188 kB / 332.7 MB, free: 12.37 MB / 270.1 MB Notification: Performance of matching and sorting (n=31): time 0.001335/0.3743, allocations: 0.5651 MB / 333.3 MB, free: 11.83 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.3744, allocations: 203.9 kB / 333.5 MB, free: 11.59 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001831/0.3746, allocations: 183 kB / 333.6 MB, free: 11.4 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/0.3747, allocations: 41.69 kB / 333.7 MB, free: 11.35 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3748, allocations: 136.7 kB / 333.8 MB, free: 11.21 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.488e-05/0.3749, allocations: 79 kB / 333.9 MB, free: 11.14 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.988e-05/0.375, allocations: 66.02 kB / 334 MB, free: 11.07 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3751, allocations: 334.8 kB / 334.3 MB, free: 10.73 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002452/0.3754, allocations: 108.6 kB / 334.4 MB, free: 10.62 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.3757, allocations: 175.1 kB / 334.6 MB, free: 10.43 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005441/0.3762, allocations: 413.3 kB / 335 MB, free: 9.977 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3762, allocations: 0 / 335 MB, free: 9.977 MB / 270.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007085/0.3769, allocations: 442.3 kB / 335.4 MB, free: 9.52 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.415e-05/0.377, allocations: 97.09 kB / 335.5 MB, free: 9.406 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.3771, allocations: 3.938 kB / 335.5 MB, free: 9.402 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.3771, allocations: 4 kB / 335.5 MB, free: 9.398 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.3773, allocations: 39.91 kB / 335.5 MB, free: 9.359 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.3773, allocations: 4 kB / 335.5 MB, free: 9.355 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.3775, allocations: 43.77 kB / 335.6 MB, free: 9.312 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/0.3775, allocations: 12 kB / 335.6 MB, free: 9.301 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 (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.0002453/0.3778, allocations: 231.8 kB / 335.8 MB, free: 9.051 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.085e-05/0.3779, allocations: 27.7 kB / 335.8 MB, free: 9.023 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.348e-05/0.3779, allocations: 22.59 kB / 335.9 MB, free: 9 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.3779, allocations: 8 kB / 335.9 MB, free: 8.992 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3779, allocations: 0 / 335.9 MB, free: 8.992 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.378, allocations: 192 / 335.9 MB, free: 8.992 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001466/0.3794, allocations: 0.9396 MB / 336.8 MB, free: 7.98 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3794, allocations: 3.938 kB / 336.8 MB, free: 7.977 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.3796, allocations: 23.97 kB / 336.8 MB, free: 7.953 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3796, allocations: 0 / 336.8 MB, free: 7.953 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.3796, allocations: 12 kB / 336.9 MB, free: 7.941 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3796, allocations: 0 / 336.9 MB, free: 7.941 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3796, allocations: 4 kB / 336.9 MB, free: 7.938 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009532/0.3806, allocations: 0.6203 MB / 337.5 MB, free: 7.285 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.497e-05/0.3807, allocations: 92.86 kB / 337.6 MB, free: 7.176 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.186e-05/0.3807, allocations: 23.98 kB / 337.6 MB, free: 7.152 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.3809, allocations: 19.98 kB / 337.6 MB, free: 7.133 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.672e-05/0.381, allocations: 23.95 kB / 337.6 MB, free: 7.109 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/0.3811, allocations: 12 kB / 337.6 MB, free: 7.098 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001282/0.3812, allocations: 132.2 kB / 337.8 MB, free: 6.969 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3812, allocations: 0 / 337.8 MB, free: 6.969 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003425/0.3816, allocations: 79.83 kB / 337.9 MB, free: 6.891 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 (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.0001969/0.3818, allocations: 140.9 kB / 338 MB, free: 6.738 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0008819/0.3827, allocations: 0.5644 MB / 338.6 MB, free: 6.137 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3827, allocations: 4.062 kB / 338.6 MB, free: 6.133 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005024/0.3832, allocations: 398.6 kB / 338.9 MB, free: 5.719 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007133/0.3839, allocations: 140.9 kB / 339.1 MB, free: 5.582 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.385, allocations: 0.5224 MB / 339.6 MB, free: 5.035 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.3853, allocations: 0.7445 MB / 340.4 MB, free: 4.266 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001402/0.3854, allocations: 45.91 kB / 340.4 MB, free: 4.223 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.198e-05/0.3855, allocations: 19.44 kB / 340.4 MB, free: 4.203 MB / 270.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3855, allocations: 4 kB / 340.4 MB, free: 4.199 MB / 270.1 MB Notification: Performance of Templates: time 0.008291/0.3938, allocations: 4.255 MB / 344.7 MB, free: 15.95 MB / 286.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)