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.0008918/0.0008925, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007414/0.007414, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.764/1.764, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0005531/0.0005529, allocations: 16 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3559, allocations: 47.58 MB / 327 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003076/0.3591, allocations: 2.034 MB / 329.1 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.3608, allocations: 0.6985 MB / 329.8 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.361, allocations: 3.062 kB / 329.8 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002487/0.3613, allocations: 26.64 kB / 329.8 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.3615, allocations: 45.53 kB / 329.8 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004989/0.362, allocations: 73.95 kB / 329.9 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004757/0.3625, allocations: 249.6 kB / 330.1 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004027/0.3629, allocations: 101.6 kB / 330.2 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003679/0.3633, allocations: 102.5 kB / 330.3 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002467/0.3635, allocations: 91.7 kB / 330.4 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.25e-05/0.3636, allocations: 12.88 kB / 330.4 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.732e-05/0.3636, allocations: 11.06 kB / 330.5 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.946e-05/0.3638, allocations: 34.28 kB / 330.5 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002197/0.364, allocations: 135.3 kB / 330.6 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004742/0.3645, allocations: 254.3 kB / 330.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.223e-05/0.3645, allocations: 3.984 kB / 330.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.3645, allocations: 0 / 330.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.3645, allocations: 1.125 kB / 330.9 MB, free: 14.48 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.001589/0.3661, allocations: 0.6381 MB / 331.5 MB, free: 13.88 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.829e-05/0.3662, allocations: 9.312 kB / 331.5 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.3663, allocations: 27.09 kB / 331.6 MB, free: 13.86 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004669/0.3668, allocations: 239.8 kB / 331.8 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001491/0.367, allocations: 53.72 kB / 331.8 MB, free: 13.57 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.408e-05/0.3671, allocations: 17.59 kB / 331.9 MB, free: 13.57 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008573/0.3679, allocations: 261.1 kB / 332.1 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.368, allocations: 0 / 332.1 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.417e-05/0.368, allocations: 15.39 kB / 332.1 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.368, allocations: 3.719 kB / 332.1 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006581/0.3687, allocations: 219.7 kB / 332.3 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.3704, allocations: 0.7661 MB / 333.1 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008429/0.3713, allocations: 301.2 kB / 333.4 MB, free: 12.53 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005296/0.3718, allocations: 243 kB / 333.6 MB, free: 12.41 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.3718, allocations: 2.062 kB / 333.6 MB, free: 12.41 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006008/0.3724, allocations: 319.3 kB / 334 MB, free: 12.18 MB / 270.1 MB Notification: Performance of pre-optimization done (n=31): time 4.809e-06/0.3725, allocations: 0 / 334 MB, free: 12.18 MB / 270.1 MB Notification: Performance of matching and sorting (n=31): time 0.001388/0.3739, allocations: 0.6013 MB / 334.6 MB, free: 11.59 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001665/0.374, allocations: 203.9 kB / 334.8 MB, free: 11.34 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.3743, allocations: 183.8 kB / 334.9 MB, free: 11.16 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.3744, allocations: 37.69 kB / 335 MB, free: 11.11 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.3745, allocations: 132.8 kB / 335.1 MB, free: 10.98 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.279e-05/0.3746, allocations: 79 kB / 335.2 MB, free: 10.9 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.317e-05/0.3747, allocations: 41.69 kB / 335.2 MB, free: 10.86 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.3749, allocations: 342.8 kB / 335.6 MB, free: 10.51 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/0.3752, allocations: 112.6 kB / 335.7 MB, free: 10.39 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003227/0.3755, allocations: 183.1 kB / 335.8 MB, free: 10.2 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006092/0.3761, allocations: 413.4 kB / 336.2 MB, free: 9.742 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3761, allocations: 0 / 336.2 MB, free: 9.742 MB / 270.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000709/0.3769, allocations: 458.3 kB / 336.7 MB, free: 9.27 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.969e-05/0.377, allocations: 97.09 kB / 336.8 MB, free: 9.156 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.377, allocations: 3.938 kB / 336.8 MB, free: 9.152 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.617e-05/0.377, allocations: 4 kB / 336.8 MB, free: 9.148 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.3772, allocations: 35.92 kB / 336.8 MB, free: 9.113 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.3772, allocations: 16.02 kB / 336.8 MB, free: 9.098 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002202/0.3775, allocations: 39.69 kB / 336.9 MB, free: 9.059 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.915e-05/0.3775, allocations: 15.98 kB / 336.9 MB, free: 9.043 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.0002974/0.3778, allocations: 231.8 kB / 337.1 MB, free: 8.793 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.083e-05/0.3779, allocations: 24 kB / 337.2 MB, free: 8.77 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.339e-05/0.3779, allocations: 26.58 kB / 337.2 MB, free: 8.738 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.378, allocations: 7.938 kB / 337.2 MB, free: 8.73 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.378, allocations: 0 / 337.2 MB, free: 8.73 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.378, allocations: 0 / 337.2 MB, free: 8.73 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.3796, allocations: 0.9591 MB / 338.1 MB, free: 7.699 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3796, allocations: 0 / 338.1 MB, free: 7.699 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.3798, allocations: 23.92 kB / 338.2 MB, free: 7.676 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.3798, allocations: 4 kB / 338.2 MB, free: 7.672 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/0.3798, allocations: 11.98 kB / 338.2 MB, free: 7.66 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.3798, allocations: 0 / 338.2 MB, free: 7.66 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3798, allocations: 4 kB / 338.2 MB, free: 7.656 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.3808, allocations: 0.6246 MB / 338.8 MB, free: 7 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.186e-05/0.3809, allocations: 100.8 kB / 338.9 MB, free: 6.883 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.177e-05/0.381, allocations: 16 kB / 338.9 MB, free: 6.867 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.3812, allocations: 27.97 kB / 339 MB, free: 6.84 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.711e-05/0.3813, allocations: 27.91 kB / 339 MB, free: 6.812 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.3814, allocations: 4 kB / 339 MB, free: 6.809 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001256/0.3815, allocations: 139.2 kB / 339.1 MB, free: 6.672 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3815, allocations: 0 / 339.1 MB, free: 6.672 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004092/0.3819, allocations: 79.84 kB / 339.2 MB, free: 6.594 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.0002671/0.3822, allocations: 137 kB / 339.3 MB, free: 6.445 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009895/0.3832, allocations: 0.5526 MB / 339.9 MB, free: 5.855 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3832, allocations: 0 / 339.9 MB, free: 5.855 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005807/0.3838, allocations: 406.9 kB / 340.3 MB, free: 5.434 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008159/0.3846, allocations: 128 kB / 340.4 MB, free: 5.309 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.3858, allocations: 0.621 MB / 341 MB, free: 4.664 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.3862, allocations: 0.7448 MB / 341.8 MB, free: 3.895 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.3864, allocations: 49.89 kB / 341.8 MB, free: 3.848 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.26e-05/0.3864, allocations: 23.38 kB / 341.8 MB, free: 3.824 MB / 270.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3864, allocations: 0 / 341.8 MB, free: 3.824 MB / 270.1 MB Notification: Performance of Templates: time 0.0085/0.3949, allocations: 3.992 MB / 345.8 MB, free: 15.84 MB / 286.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)