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.00104/0.00104, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008837/0.0008837, allocations: 93.64 kB / 292.1 MB, free: 6.031 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.88e-05/3.885e-05, allocations: 4 kB / 350.6 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1369, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.417/0.554, allocations: 80.42 MB / 482.5 MB, free: 9.027 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.5542, allocations: 70.66 kB / 482.6 MB, free: 8.992 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01176/0.566, allocations: 4.293 MB / 486.9 MB, free: 5.363 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5661, allocations: 4 kB / 486.9 MB, free: 5.359 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.875e-05/0.5661, allocations: 4 kB / 486.9 MB, free: 5.355 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.0008717/0.567, allocations: 0.5816 MB / 487.5 MB, free: 4.746 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.567, allocations: 12.02 kB / 487.5 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.687e-05/0.5671, allocations: 57.86 kB / 487.6 MB, free: 4.684 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.887e-05/0.5672, allocations: 27.72 kB / 487.6 MB, free: 4.656 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000333/0.5676, allocations: 252.9 kB / 487.8 MB, free: 4.395 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.457e-05/0.5677, allocations: 101 kB / 487.9 MB, free: 4.285 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.129e-05/0.5677, allocations: 23.75 kB / 488 MB, free: 4.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004328/0.5682, allocations: 237.9 kB / 488.2 MB, free: 4.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.5682, allocations: 0 / 488.2 MB, free: 4.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.5682, allocations: 10.69 kB / 488.2 MB, free: 4.086 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.5683, allocations: 4 kB / 488.2 MB, free: 4.082 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002919/0.5685, allocations: 151.9 kB / 488.4 MB, free: 3.984 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001345/0.5699, allocations: 0.8882 MB / 489.2 MB, free: 3.184 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002903/0.5702, allocations: 175 kB / 489.4 MB, free: 3.066 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.5704, allocations: 104.2 kB / 489.5 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.5705, allocations: 8.328 kB / 489.5 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.5707, allocations: 161.9 kB / 489.7 MB, free: 2.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.914e-06/0.5707, allocations: 0 / 489.7 MB, free: 2.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005925/0.5713, allocations: 267.2 kB / 489.9 MB, free: 2.625 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.5714, allocations: 106.8 kB / 490.1 MB, free: 2.496 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.5716, allocations: 188.9 kB / 490.2 MB, free: 2.332 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.5716, allocations: 29.33 kB / 490.3 MB, free: 2.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.207e-05/0.5717, allocations: 154.3 kB / 490.4 MB, free: 2.168 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.344e-05/0.5717, allocations: 61.86 kB / 490.5 MB, free: 2.117 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.747e-05/0.5717, allocations: 7.688 kB / 490.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.145e-05/0.5718, allocations: 337.8 kB / 490.8 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.572, allocations: 77.7 kB / 490.9 MB, free: 1.734 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.5722, allocations: 109.5 kB / 491 MB, free: 1.648 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.5723, allocations: 129.7 kB / 491.1 MB, free: 1.535 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.5723, allocations: 8.031 kB / 491.1 MB, free: 1.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005051/0.5728, allocations: 363.8 kB / 491.5 MB, free: 1.234 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.31e-05/0.5729, allocations: 66.95 kB / 491.6 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.5729, allocations: 0 / 491.6 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003266/0.5732, allocations: 106.3 kB / 491.7 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.5734, allocations: 31.98 kB / 491.7 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00196/0.5754, allocations: 1.871 MB / 493.6 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004438/0.5759, allocations: 67.89 kB / 493.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.025e-05/0.5759, allocations: 11.98 kB / 493.6 MB, free: 15.2 MB / 362.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 0.0001278/0.576, allocations: 118.2 kB / 493.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.54e-05/0.5761, allocations: 23.67 kB / 493.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.641e-05/0.5762, allocations: 33.66 kB / 493.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.5762, allocations: 7.922 kB / 493.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.5762, allocations: 0 / 493.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.5762, allocations: 4 kB / 493.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005011/0.5767, allocations: 447.1 kB / 494.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.5767, allocations: 0 / 494.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.5769, allocations: 31.97 kB / 494.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002451/0.5772, allocations: 106.8 kB / 494.4 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.5772, allocations: 4 kB / 494.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002028/0.5792, allocations: 1.856 MB / 496.3 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.5793, allocations: 11.27 kB / 496.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007649/0.58, allocations: 390.4 kB / 496.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.5802, allocations: 116.9 kB / 496.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.5802, allocations: 11.94 kB / 496.8 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.5805, allocations: 27.97 kB / 496.8 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.5806, allocations: 31.91 kB / 496.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.5806, allocations: 4 kB / 496.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001517/0.5808, allocations: 151.5 kB / 497 MB, free: 11.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5808, allocations: 4 kB / 497 MB, free: 11.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004823/0.5813, allocations: 95.84 kB / 497.1 MB, free: 11.52 MB / 362.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.001077/0.5824, allocations: 1.004 MB / 498.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007775/0.5831, allocations: 446.2 kB / 498.5 MB, free: 10.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.5832, allocations: 0 / 498.5 MB, free: 10.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003702/0.5835, allocations: 224.6 kB / 498.7 MB, free: 9.781 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003879/0.5839, allocations: 49.84 kB / 498.8 MB, free: 9.734 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.5854, allocations: 438.2 kB / 499.2 MB, free: 9.273 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.5857, allocations: 0.7638 MB / 500 MB, free: 8.484 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.5858, allocations: 10.09 kB / 500 MB, free: 8.477 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.586, allocations: 67.41 kB / 0.4883 GB, free: 8.41 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.586, allocations: 0 / 0.4883 GB, free: 8.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/0.6114, allocations: 6.172 MB / 0.4944 GB, free: 2.547 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002804/0.6118, allocations: 199.2 kB / 0.4945 GB, free: 2.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.8/2.412, allocations: 2.109 kB / 0.4946 GB, free: 2.32 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)