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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007018/0.0007019, allocations: 95.94 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009181/0.0009181, allocations: 206.2 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002104/0.0002104, allocations: 8 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08596/0.08618, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.00253/0.08874, allocations: 2.304 MB / 361.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.08989, allocations: 0.6857 MB / 362.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.09004, allocations: 4 kB / 362.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.09016, allocations: 23.78 kB / 362.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001644/0.09033, allocations: 67.47 kB / 362.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002613/0.0906, allocations: 87.89 kB / 362.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003128/0.09093, allocations: 334.7 kB / 362.9 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001767/0.09111, allocations: 85.56 kB / 362.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.09128, allocations: 115.5 kB / 363 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.09147, allocations: 127.4 kB / 363.2 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.657e-05/0.09153, allocations: 16 kB / 363.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.167e-05/0.09158, allocations: 20 kB / 363.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.309e-05/0.09163, allocations: 47.77 kB / 363.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.09179, allocations: 161 kB / 363.4 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002856/0.09208, allocations: 306.9 kB / 363.7 MB, free: 8.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.09209, allocations: 0 / 363.7 MB, free: 8.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.0921, allocations: 0 / 363.7 MB, free: 8.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.09211, allocations: 0 / 363.7 MB, free: 8.801 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.0009567/0.09307, allocations: 0.596 MB / 364.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.09312, allocations: 8.031 kB / 364.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.449e-05/0.0932, allocations: 58.72 kB / 364.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.945e-05/0.09328, allocations: 28.66 kB / 364.4 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.0936, allocations: 259.5 kB / 364.7 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.919e-05/0.0937, allocations: 106.1 kB / 364.8 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.027e-05/0.09376, allocations: 20.38 kB / 364.8 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000513/0.09428, allocations: 265.7 kB / 365 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.0943, allocations: 0 / 365 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.625e-05/0.09433, allocations: 4 kB / 365 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.677e-06/0.09435, allocations: 12 kB / 365.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005147/0.09487, allocations: 209.6 kB / 365.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.09605, allocations: 0.871 MB / 366.1 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004835/0.09654, allocations: 222.7 kB / 366.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000305/0.09686, allocations: 135 kB / 366.5 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.09689, allocations: 0 / 366.5 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003896/0.09728, allocations: 197 kB / 366.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.994e-06/0.0973, allocations: 4 kB / 366.7 MB, free: 5.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001412/0.09872, allocations: 0.519 MB / 367.2 MB, free: 5.055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.096e-05/0.09879, allocations: 106.8 kB / 367.3 MB, free: 4.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/0.09897, allocations: 206.8 kB / 367.5 MB, free: 4.711 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.09901, allocations: 33.7 kB / 367.5 MB, free: 4.672 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.581e-05/0.09911, allocations: 152.2 kB / 367.7 MB, free: 4.516 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.227e-05/0.09917, allocations: 67.05 kB / 367.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.997e-05/0.09923, allocations: 37.7 kB / 367.8 MB, free: 4.406 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.09934, allocations: 326.8 kB / 368.1 MB, free: 4.078 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.09962, allocations: 104.2 kB / 368.2 MB, free: 3.977 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002845/0.09991, allocations: 147.8 kB / 368.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000478/0.1004, allocations: 260.7 kB / 368.6 MB, free: 3.547 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1004, allocations: 0 / 368.6 MB, free: 3.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007677/0.1012, allocations: 416.3 kB / 369 MB, free: 3.121 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.568e-05/0.1012, allocations: 67.39 kB / 369.1 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1013, allocations: 0 / 369.1 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003082/0.1016, allocations: 108.8 kB / 369.2 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.1018, allocations: 39.97 kB / 369.2 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.1037, allocations: 1.866 MB / 371.1 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004569/0.1042, allocations: 91.66 kB / 371.2 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/0.1042, allocations: 12 kB / 371.2 MB, free: 0.793 MB / 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.0001311/0.1044, allocations: 141.5 kB / 371.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.547e-05/0.1044, allocations: 23.98 kB / 371.4 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.098e-05/0.1045, allocations: 25.88 kB / 371.4 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1045, allocations: 11.88 kB / 371.4 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.1045, allocations: 0 / 371.4 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1045, allocations: 3.984 kB / 371.4 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004097/0.1049, allocations: 447.1 kB / 371.8 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.1049, allocations: 7.938 kB / 371.8 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.1051, allocations: 27.98 kB / 371.9 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1464/0.2515, allocations: 100.1 kB / 372 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.2515, allocations: 5.984 kB / 372 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001703/0.2532, allocations: 1.865 MB / 373.8 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2533, allocations: 1.062 kB / 373.8 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008389/0.2541, allocations: 430.5 kB / 374.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.598e-05/0.2542, allocations: 115 kB / 374.4 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.2542, allocations: 8.172 kB / 374.4 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.2544, allocations: 29.03 kB / 374.4 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.884e-05/0.2545, allocations: 29.02 kB / 374.4 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.2546, allocations: 5.891 kB / 374.4 MB, free: 17.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001039/0.2547, allocations: 145.9 kB / 374.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2547, allocations: 0 / 374.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004233/0.2551, allocations: 88.05 kB / 374.7 MB, free: 17.78 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.001024/0.2561, allocations: 0.9725 MB / 375.6 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008348/0.257, allocations: 0.5015 MB / 376.1 MB, free: 16.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.257, allocations: 3.938 kB / 376.1 MB, free: 16.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004342/0.2574, allocations: 251.7 kB / 376.4 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.2578, allocations: 52.77 kB / 376.4 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003357/0.2612, allocations: 2.887 MB / 379.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001537/0.2613, allocations: 0.7449 MB / 380.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.339e-05/0.2614, allocations: 15.72 kB / 380.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.39e-05/0.2615, allocations: 65.69 kB / 380.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2615, allocations: 0 / 380.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01818/0.2797, allocations: 6.329 MB / 386.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001454/0.2799, allocations: 254.2 kB / 386.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.07, allocations: 3.25 kB / 386.7 MB, free: 13.06 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1)