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.0009907/0.000991, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.00913/0.009131, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.945/1.945, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.000534/0.0005339, allocations: 8 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.391, allocations: 47.59 MB / 327 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003319/0.3944, allocations: 2.031 MB / 329.1 MB, free: 15.83 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.3965, allocations: 0.6978 MB / 329.8 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002195/0.3968, allocations: 6.625 kB / 329.8 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.3971, allocations: 19.53 kB / 329.8 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002309/0.3973, allocations: 49.77 kB / 329.8 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006046/0.3979, allocations: 77.27 kB / 329.9 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005992/0.3986, allocations: 250 kB / 330.2 MB, free: 15 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004507/0.3991, allocations: 97.72 kB / 330.2 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003816/0.3994, allocations: 94.02 kB / 330.3 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.3997, allocations: 94.83 kB / 330.4 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.212e-05/0.3998, allocations: 22.19 kB / 330.5 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.265e-05/0.3999, allocations: 11.03 kB / 330.5 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.4, allocations: 38.31 kB / 330.5 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002893/0.4003, allocations: 127.1 kB / 330.6 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005105/0.4009, allocations: 258.1 kB / 330.9 MB, free: 14.51 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.088e-05/0.4009, allocations: 0 / 330.9 MB, free: 14.51 MB / 270.1 MB Notification: Performance of FrontEnd: time 6.983e-06/0.4009, allocations: 1.125 kB / 330.9 MB, free: 14.51 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.4009, allocations: 0 / 330.9 MB, free: 14.51 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.001747/0.4027, allocations: 0.6308 MB / 331.5 MB, free: 13.92 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.642e-05/0.4028, allocations: 9.031 kB / 331.5 MB, free: 13.92 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/0.4029, allocations: 30.7 kB / 331.5 MB, free: 13.9 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005305/0.4035, allocations: 248.6 kB / 331.8 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.4036, allocations: 49.3 kB / 331.8 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.48e-05/0.4037, allocations: 21.06 kB / 331.9 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009144/0.4046, allocations: 261.7 kB / 332.1 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.4047, allocations: 0 / 332.1 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.331e-05/0.4047, allocations: 11.06 kB / 332.1 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.4048, allocations: 7.922 kB / 332.1 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006941/0.4055, allocations: 214.6 kB / 332.3 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/0.4076, allocations: 0.7672 MB / 333.1 MB, free: 12.71 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009258/0.4085, allocations: 309 kB / 333.4 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006249/0.4092, allocations: 231 kB / 333.6 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-05/0.4092, allocations: 6.875 kB / 333.6 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006463/0.4099, allocations: 318 kB / 334 MB, free: 12.21 MB / 270.1 MB Notification: Performance of pre-optimization done (n=31): time 5.129e-06/0.4099, allocations: 4 kB / 334 MB, free: 12.21 MB / 270.1 MB Notification: Performance of matching and sorting (n=31): time 0.001359/0.4113, allocations: 0.602 MB / 334.6 MB, free: 11.59 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/0.4115, allocations: 199.9 kB / 334.8 MB, free: 11.35 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002225/0.4117, allocations: 187.8 kB / 334.9 MB, free: 11.16 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.4118, allocations: 33.7 kB / 335 MB, free: 11.12 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.4119, allocations: 132.8 kB / 335.1 MB, free: 10.98 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.688e-05/0.412, allocations: 86.98 kB / 335.2 MB, free: 10.9 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.599e-05/0.4121, allocations: 37.7 kB / 335.2 MB, free: 10.86 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002233/0.4123, allocations: 338.8 kB / 335.6 MB, free: 10.52 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002967/0.4126, allocations: 112.6 kB / 335.7 MB, free: 10.4 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003575/0.413, allocations: 175.1 kB / 335.8 MB, free: 10.21 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007603/0.4137, allocations: 425.3 kB / 336.3 MB, free: 9.742 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4138, allocations: 0 / 336.3 MB, free: 9.742 MB / 270.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009966/0.4148, allocations: 454.3 kB / 336.7 MB, free: 9.273 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001763/0.415, allocations: 97.09 kB / 336.8 MB, free: 9.16 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/0.415, allocations: 3.938 kB / 336.8 MB, free: 9.156 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.986e-05/0.415, allocations: 12.08 kB / 336.8 MB, free: 9.145 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002599/0.4153, allocations: 35.92 kB / 336.8 MB, free: 9.109 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.902e-05/0.4153, allocations: 4 kB / 336.8 MB, free: 9.105 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.4156, allocations: 43.67 kB / 336.9 MB, free: 9.062 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.4157, allocations: 12 kB / 336.9 MB, free: 9.051 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.0004009/0.4161, allocations: 235.8 kB / 337.1 MB, free: 8.797 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.627e-05/0.4161, allocations: 23.98 kB / 337.2 MB, free: 8.773 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.217e-05/0.4162, allocations: 30.58 kB / 337.2 MB, free: 8.738 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.4162, allocations: 7.938 kB / 337.2 MB, free: 8.73 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.4163, allocations: 0 / 337.2 MB, free: 8.73 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.4163, allocations: 0 / 337.2 MB, free: 8.73 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.4179, allocations: 0.9551 MB / 338.1 MB, free: 7.703 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/0.418, allocations: 4 kB / 338.1 MB, free: 7.699 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.4181, allocations: 23.98 kB / 338.2 MB, free: 7.676 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.4181, allocations: 4 kB / 338.2 MB, free: 7.672 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.4181, allocations: 8 kB / 338.2 MB, free: 7.664 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.451e-06/0.4182, allocations: 3.984 kB / 338.2 MB, free: 7.66 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.4182, allocations: 4.031 kB / 338.2 MB, free: 7.656 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009769/0.4191, allocations: 0.6284 MB / 338.8 MB, free: 6.996 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.17e-05/0.4193, allocations: 96.77 kB / 338.9 MB, free: 6.883 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.786e-05/0.4193, allocations: 19.98 kB / 338.9 MB, free: 6.863 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.4196, allocations: 23.98 kB / 339 MB, free: 6.84 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.4197, allocations: 27.97 kB / 339 MB, free: 6.812 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.4197, allocations: 7.984 kB / 339 MB, free: 6.805 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001368/0.4199, allocations: 135.2 kB / 339.1 MB, free: 6.672 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4199, allocations: 0 / 339.1 MB, free: 6.672 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004611/0.4204, 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.0002452/0.4206, allocations: 128.9 kB / 339.3 MB, free: 6.453 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009954/0.4216, allocations: 0.5565 MB / 339.9 MB, free: 5.859 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.4216, allocations: 4.188 kB / 339.9 MB, free: 5.855 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005543/0.4222, allocations: 406.6 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.0008017/0.423, allocations: 128.1 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.001208/0.4242, allocations: 0.6215 MB / 341 MB, free: 4.664 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/0.4248, allocations: 0.7487 MB / 341.8 MB, free: 3.891 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001991/0.425, allocations: 57.88 kB / 341.8 MB, free: 3.836 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.077e-05/0.425, allocations: 23.38 kB / 341.9 MB, free: 3.812 MB / 270.1 MB Notification: Performance of SimCode: time 6.92e-07/0.425, allocations: 0 / 341.9 MB, free: 3.812 MB / 270.1 MB Notification: Performance of Templates: time 0.008351/0.4334, allocations: 3.976 MB / 345.8 MB, free: 15.84 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)