Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001123/0.001123, allocations: 114.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 200.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 60.72 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09013/0.09127, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003925/0.09523, allocations: 2.619 MB / 361.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.09642, allocations: 0.6817 MB / 362.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.09655, allocations: 8 kB / 362.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.0967, allocations: 35.64 kB / 362.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001448/0.09687, allocations: 75.28 kB / 362.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.09717, allocations: 95.86 kB / 362.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003897/0.09757, allocations: 370.7 kB / 362.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.09778, allocations: 90.55 kB / 362.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.09795, allocations: 139.5 kB / 363 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001928/0.09815, allocations: 147.4 kB / 363.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.228e-05/0.09821, allocations: 32 kB / 363.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.901e-05/0.09826, allocations: 28 kB / 363.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.216e-05/0.09834, allocations: 59.81 kB / 363.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000142/0.09849, allocations: 155.2 kB / 363.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003119/0.09881, allocations: 326.9 kB / 363.7 MB, free: 8.477 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.09882, allocations: 3.938 kB / 363.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.09882, allocations: 0 / 363.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.09884, allocations: 0 / 363.7 MB, free: 8.473 MB / 302.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.001257/0.1001, allocations: 0.6427 MB / 364.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.1002, allocations: 8.031 kB / 364.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.102e-05/0.1002, allocations: 28.66 kB / 364.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.1006, allocations: 255.5 kB / 364.7 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.1008, allocations: 102.1 kB / 364.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.726e-05/0.1009, allocations: 24.38 kB / 364.8 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004999/0.1014, allocations: 253.9 kB / 365 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1014, allocations: 7.922 kB / 365 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.831e-05/0.1014, allocations: 16 kB / 365.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1014, allocations: 4 kB / 365.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000528/0.102, allocations: 197.6 kB / 365.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.1032, allocations: 0.8593 MB / 366.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004833/0.1037, allocations: 202.7 kB / 366.3 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002967/0.104, allocations: 128.8 kB / 366.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.104, allocations: 0 / 366.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000362/0.1044, allocations: 189.3 kB / 366.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.1044, allocations: 4 kB / 366.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001413/0.1059, allocations: 497.9 kB / 367.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.105e-05/0.1059, allocations: 106.8 kB / 367.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002146/0.1062, allocations: 206.8 kB / 367.4 MB, free: 4.496 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.374e-05/0.1062, allocations: 33.7 kB / 367.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.1063, allocations: 160.2 kB / 367.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.264e-05/0.1064, allocations: 67.09 kB / 367.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.1065, allocations: 49.94 kB / 367.7 MB, free: 4.172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1066, allocations: 330.8 kB / 368 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.1069, allocations: 100.2 kB / 368.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002855/0.1072, allocations: 139.8 kB / 368.3 MB, free: 3.594 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004915/0.1077, allocations: 243.1 kB / 368.5 MB, free: 3.336 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1077, allocations: 0 / 368.5 MB, free: 3.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007664/0.1085, allocations: 407.3 kB / 368.9 MB, free: 2.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.135e-05/0.1086, allocations: 67.33 kB / 369 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.1086, allocations: 0 / 369 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003461/0.1089, allocations: 112.8 kB / 369.1 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.1091, allocations: 31.97 kB / 369.1 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/0.1115, allocations: 2.072 MB / 371.2 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000459/0.112, allocations: 67.88 kB / 371.3 MB, free: 428 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.109e-05/0.112, allocations: 12 kB / 371.3 MB, free: 416 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (dcPowerSupply.cp,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,diode.off,dcPowerSupply.cc,dcPowerSupply.cv,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001656/0.1122, allocations: 149.5 kB / 371.4 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.851e-05/0.1123, allocations: 27.66 kB / 371.4 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.192e-05/0.1123, allocations: 25.88 kB / 371.5 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1123, allocations: 7.984 kB / 371.5 MB, free: 204 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-06/0.1123, allocations: 0 / 371.5 MB, free: 204 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.1123, allocations: 4 kB / 371.5 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1623/0.2746, allocations: 441 kB / 371.9 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.2747, allocations: 2.406 kB / 371.9 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.2749, allocations: 27.88 kB / 371.9 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003062/0.2752, allocations: 106.6 kB / 372 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.2752, allocations: 6.688 kB / 372.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.2771, allocations: 2.07 MB / 374.1 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2771, allocations: 1.812 kB / 374.1 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008282/0.278, allocations: 402.4 kB / 374.5 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.535e-05/0.2781, allocations: 115.2 kB / 374.6 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.2781, allocations: 6.922 kB / 374.6 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.2783, allocations: 24.44 kB / 374.7 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.95e-05/0.2784, allocations: 23.64 kB / 374.7 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.2785, allocations: 9.156 kB / 374.7 MB, free: 18.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001236/0.2786, allocations: 149.5 kB / 374.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2786, allocations: 2.156 kB / 374.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004558/0.2791, allocations: 89.88 kB / 374.9 MB, free: 18.34 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bufferCapacitor.v) * Number of discrete variables: 6 ($whenCondition1,dcPowerSupply.cv,dcPowerSupply.cc,diode.off,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001273/0.2792, allocations: 106.4 kB / 375 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009372/0.2802, allocations: 0.4897 MB / 375.5 MB, free: 17.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2802, allocations: 1.031 kB / 375.5 MB, free: 17.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004343/0.2806, allocations: 244.1 kB / 375.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003473/0.281, allocations: 64.59 kB / 375.8 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.282, allocations: 0.5148 MB / 376.3 MB, free: 17.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002005/0.2822, allocations: 0.7491 MB / 377.1 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.808e-05/0.2823, allocations: 15.39 kB / 377.1 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.868e-05/0.2824, allocations: 15.06 kB / 377.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2824, allocations: 0 / 377.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of Templates: time 0.009563/0.292, allocations: 4.796 MB / 381.9 MB, free: 16.5 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1)