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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001449/0.001449, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007702/0.0007702, allocations: 91.61 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.498e-05/2.484e-05, allocations: 4 kB / 343.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1168, allocations: 51.48 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3021/0.419, allocations: 79.76 MB / 475 MB, free: 12.4 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.4193, allocations: 68.23 kB / 475.1 MB, free: 12.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0117/0.4311, allocations: 4.255 MB / 479.4 MB, free: 9.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4311, allocations: 0 / 479.4 MB, free: 9.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.4311, allocations: 4.188 kB / 479.4 MB, free: 9.766 MB / 346.7 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.0008236/0.432, allocations: 0.5836 MB / 479.9 MB, free: 9.148 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.432, allocations: 15.31 kB / 480 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.4321, allocations: 27.72 kB / 480 MB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002757/0.4324, allocations: 254.8 kB / 480.2 MB, free: 8.844 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.596e-05/0.4325, allocations: 85.55 kB / 480.3 MB, free: 8.742 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.69e-05/0.4326, allocations: 19.61 kB / 480.3 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002765/0.4328, allocations: 151 kB / 480.5 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002881/0.4331, allocations: 194.3 kB / 480.7 MB, free: 8.477 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.4332, allocations: 0 / 480.7 MB, free: 8.477 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.316e-05/0.4332, allocations: 7.984 kB / 480.7 MB, free: 8.469 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.4332, allocations: 4 kB / 480.7 MB, free: 8.465 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.4343, allocations: 0.8436 MB / 481.5 MB, free: 7.707 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.4346, allocations: 162 kB / 481.7 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.4347, allocations: 90.05 kB / 481.8 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.4348, allocations: 4 kB / 481.8 MB, free: 7.539 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002207/0.435, allocations: 154.2 kB / 481.9 MB, free: 7.395 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.435, allocations: 0 / 481.9 MB, free: 7.395 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005493/0.4355, allocations: 253.9 kB / 482.2 MB, free: 7.188 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.903e-05/0.4356, allocations: 106.8 kB / 482.3 MB, free: 7.059 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.4357, allocations: 171.3 kB / 482.4 MB, free: 6.906 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.4358, allocations: 29.7 kB / 482.5 MB, free: 6.871 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.296e-05/0.4358, allocations: 151.7 kB / 482.6 MB, free: 6.738 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.679e-05/0.4359, allocations: 57.92 kB / 482.7 MB, free: 6.688 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.876e-05/0.4359, allocations: 4 kB / 482.7 MB, free: 6.684 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.021e-05/0.4359, allocations: 337.5 kB / 483 MB, free: 6.355 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.4361, allocations: 72.05 kB / 483.1 MB, free: 6.309 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.4362, allocations: 106.7 kB / 483.2 MB, free: 6.227 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.4363, allocations: 67.27 kB / 483.3 MB, free: 6.188 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4363, allocations: 0.75 kB / 483.3 MB, free: 6.188 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004002/0.4367, allocations: 287.9 kB / 483.5 MB, free: 5.969 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.262e-05/0.4368, allocations: 62.81 kB / 483.6 MB, free: 5.898 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.4368, allocations: 4 kB / 483.6 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/0.4371, allocations: 103.2 kB / 483.7 MB, free: 5.816 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.4372, allocations: 43.66 kB / 483.7 MB, free: 5.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/0.4387, allocations: 1.805 MB / 485.5 MB, free: 4.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000388/0.4391, allocations: 67.8 kB / 485.6 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.395e-05/0.4392, allocations: 8 kB / 485.6 MB, free: 4.035 MB / 346.7 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 ($whenCondition1,dcPowerSupply.cv,dcPowerSupply.cc,diode.off,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,dcPowerSupply.cp) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 8.174e-05/0.4393, allocations: 112.6 kB / 485.7 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00043/0.4397, allocations: 246.8 kB / 486 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.4397, allocations: 23.81 kB / 486 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.627e-05/0.4398, allocations: 25.22 kB / 486 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.4398, allocations: 3.984 kB / 486 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.4398, allocations: 4 kB / 486 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.4398, allocations: 3.953 kB / 486 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002981/0.4401, allocations: 402.6 kB / 486.4 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.4401, allocations: 0 / 486.4 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/0.4403, allocations: 32.02 kB / 486.5 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001957/0.4405, allocations: 100.2 kB / 486.6 MB, free: 3.176 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.4405, allocations: 6.875 kB / 486.6 MB, free: 3.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/0.4418, allocations: 1.798 MB / 488.4 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4419, allocations: 0 / 488.4 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005418/0.4424, allocations: 378.1 kB / 488.7 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.859e-05/0.4425, allocations: 116.1 kB / 488.8 MB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.4425, allocations: 4 kB / 488.8 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.4428, allocations: 23.97 kB / 488.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.944e-05/0.4429, allocations: 34.89 kB / 488.9 MB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.4429, allocations: 4 kB / 488.9 MB, free: 1.016 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.979e-05/0.443, allocations: 131.1 kB / 489 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.443, allocations: 0 / 489 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003797/0.4434, allocations: 93.44 kB / 489.1 MB, free: 0.8164 MB / 346.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.000781/0.4442, allocations: 0.9891 MB / 490.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005793/0.4448, allocations: 413.5 kB / 490.5 MB, free: 15.53 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4448, allocations: 7.938 kB / 490.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002966/0.4451, allocations: 207.4 kB / 490.7 MB, free: 15.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.4454, allocations: 42.69 kB / 490.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.4467, allocations: 421.5 kB / 491.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.447, allocations: 0.7594 MB / 491.9 MB, free: 14.12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.675e-05/0.4471, allocations: 9.875 kB / 492 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.986e-05/0.4472, allocations: 67.72 kB / 492 MB, free: 14.09 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.4472, allocations: 0 / 492 MB, free: 14.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02464/0.4719, allocations: 5.382 MB / 497.4 MB, free: 8.797 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.4721, allocations: 152.6 kB / 497.5 MB, free: 8.605 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.821/2.293, allocations: 0 / 497.5 MB, free: 8.605 MB / 362.7 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/linux/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)