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.001319/0.001319, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001346/0.001346, allocations: 189.5 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.046/2.046, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.001551/0.001551, allocations: 55.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4545/0.4561, allocations: 46.62 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.006579/0.4627, allocations: 2.382 MB / 327.2 MB, free: 52 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.4651, allocations: 0.6994 MB / 327.9 MB, free: 15.49 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003679/0.4655, allocations: 6.188 kB / 327.9 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002991/0.4659, allocations: 27.38 kB / 328 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003317/0.4662, allocations: 45.45 kB / 328 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007642/0.467, allocations: 77.61 kB / 328.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.468, allocations: 269.7 kB / 328.3 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005106/0.4686, allocations: 109.8 kB / 328.4 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000618/0.4692, allocations: 119.3 kB / 328.6 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004836/0.4697, allocations: 116.4 kB / 328.7 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.4699, allocations: 26.47 kB / 328.7 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.234e-05/0.47, allocations: 22 kB / 328.7 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.4702, allocations: 51.83 kB / 328.8 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002636/0.4704, allocations: 115 kB / 328.9 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007781/0.4712, allocations: 276.1 kB / 329.2 MB, free: 14.66 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-05/0.4713, allocations: 1.219 kB / 329.2 MB, free: 14.66 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.967e-06/0.4713, allocations: 0 / 329.2 MB, free: 14.66 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.171e-05/0.4713, allocations: 0 / 329.2 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.002139/0.4734, allocations: 0.671 MB / 329.8 MB, free: 14.04 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.231e-05/0.4735, allocations: 8.812 kB / 329.8 MB, free: 14.04 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.4737, allocations: 32 kB / 329.9 MB, free: 14.02 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005307/0.4742, allocations: 239.2 kB / 330.1 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/0.4744, allocations: 53.06 kB / 330.2 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.01e-05/0.4745, allocations: 18.22 kB / 330.2 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.4756, allocations: 262 kB / 330.4 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.4756, allocations: 1 kB / 330.4 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.718e-05/0.4757, allocations: 6.375 kB / 330.4 MB, free: 13.57 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.4757, allocations: 4.344 kB / 330.4 MB, free: 13.57 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006503/0.4763, allocations: 207.3 kB / 330.6 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.4782, allocations: 0.7612 MB / 331.4 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007631/0.479, allocations: 295.7 kB / 331.7 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005214/0.4795, allocations: 229.2 kB / 331.9 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.372e-05/0.4795, allocations: 1.656 kB / 331.9 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007012/0.4802, allocations: 324.4 kB / 332.2 MB, free: 12.33 MB / 270.1 MB Notification: Performance of pre-optimization done (n=31): time 2.555e-06/0.4803, allocations: 0 / 332.2 MB, free: 12.33 MB / 270.1 MB Notification: Performance of matching and sorting (n=31): time 0.001383/0.4817, allocations: 0.5693 MB / 332.8 MB, free: 11.9 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/0.4818, allocations: 203.9 kB / 333 MB, free: 11.66 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.482, allocations: 183.8 kB / 333.2 MB, free: 11.47 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.115e-05/0.4821, allocations: 37.7 kB / 333.2 MB, free: 11.43 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.4822, allocations: 132.8 kB / 333.4 MB, free: 11.29 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.931e-05/0.4823, allocations: 82.98 kB / 333.4 MB, free: 11.21 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.4824, allocations: 62.03 kB / 333.5 MB, free: 11.14 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002734/0.4827, allocations: 334.8 kB / 333.8 MB, free: 10.81 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002828/0.483, allocations: 116.6 kB / 333.9 MB, free: 10.69 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003535/0.4834, allocations: 171.1 kB / 334.1 MB, free: 10.5 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006451/0.484, allocations: 413.5 kB / 334.5 MB, free: 10.05 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.4841, allocations: 0 / 334.5 MB, free: 10.05 MB / 270.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008144/0.4849, allocations: 438.2 kB / 334.9 MB, free: 9.598 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.485, allocations: 97.09 kB / 335 MB, free: 9.484 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.485, allocations: 3.938 kB / 335 MB, free: 9.48 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.989e-05/0.485, allocations: 4 kB / 335 MB, free: 9.477 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.4853, allocations: 39.91 kB / 335.1 MB, free: 9.438 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.379e-05/0.4853, allocations: 7.938 kB / 335.1 MB, free: 9.43 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/0.4855, allocations: 39.77 kB / 335.1 MB, free: 9.391 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.4856, allocations: 16 kB / 335.1 MB, free: 9.375 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.0003127/0.4859, allocations: 231.8 kB / 335.4 MB, free: 9.125 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.295e-05/0.486, allocations: 27.91 kB / 335.4 MB, free: 9.098 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.776e-05/0.486, allocations: 22.59 kB / 335.4 MB, free: 9.074 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.486, allocations: 15.92 kB / 335.4 MB, free: 9.059 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.4861, allocations: 3.984 kB / 335.4 MB, free: 9.055 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.4861, allocations: 0 / 335.4 MB, free: 9.055 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.4879, allocations: 0.9318 MB / 336.4 MB, free: 8.051 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.4879, allocations: 0 / 336.4 MB, free: 8.051 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.4881, allocations: 27.92 kB / 336.4 MB, free: 8.023 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.4881, allocations: 0 / 336.4 MB, free: 8.023 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.4882, allocations: 8 kB / 336.4 MB, free: 8.016 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.4882, allocations: 4 kB / 336.4 MB, free: 8.012 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.197e-05/0.4882, allocations: 12.02 kB / 336.4 MB, free: 8 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.4894, allocations: 0.605 MB / 337 MB, free: 7.363 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.4896, allocations: 100.9 kB / 337.1 MB, free: 7.246 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.175e-05/0.4897, allocations: 19.98 kB / 337.1 MB, free: 7.227 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.4899, allocations: 19.98 kB / 337.2 MB, free: 7.207 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.49, allocations: 23.91 kB / 337.2 MB, free: 7.184 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-05/0.49, allocations: 11.98 kB / 337.2 MB, free: 7.172 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001549/0.4902, allocations: 135.2 kB / 337.3 MB, free: 7.039 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4902, allocations: 0 / 337.3 MB, free: 7.039 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004139/0.4906, allocations: 79.84 kB / 337.4 MB, free: 6.961 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.0002987/0.4909, allocations: 129 kB / 337.5 MB, free: 6.82 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.492, allocations: 0.576 MB / 338.1 MB, free: 6.207 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.492, allocations: 0 / 338.1 MB, free: 6.207 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007081/0.4928, allocations: 394.6 kB / 338.5 MB, free: 5.797 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009111/0.4937, allocations: 132.9 kB / 338.6 MB, free: 5.668 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.4951, allocations: 0.6084 MB / 339.2 MB, free: 5.035 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005048/0.4956, allocations: 0.7445 MB / 340 MB, free: 4.266 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001881/0.4958, allocations: 53.88 kB / 340 MB, free: 4.215 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.179e-05/0.4958, allocations: 23.44 kB / 340 MB, free: 4.191 MB / 270.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4959, allocations: 4.375 kB / 340.1 MB, free: 4.188 MB / 270.1 MB Notification: Performance of Templates: time 0.01054/0.5064, allocations: 4.194 MB / 344.2 MB, free: 15.99 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)