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.00125/0.001251, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.4 MB / 246.3 MB, free: 9.066 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 69.64 kB / 306.4 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08008/0.08123, allocations: 50.52 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003662/0.08494, allocations: 2.67 MB / 359.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.08634, allocations: 0.6896 MB / 360.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002068/0.0866, allocations: 4 kB / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.08677, allocations: 23.77 kB / 360.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001766/0.08695, allocations: 67.47 kB / 360.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.08723, allocations: 87.84 kB / 360.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003012/0.08754, allocations: 326.8 kB / 360.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001588/0.08771, allocations: 89.56 kB / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.08787, allocations: 123.5 kB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.08805, allocations: 147.3 kB / 361.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.347e-05/0.08811, allocations: 20 kB / 361.1 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.139e-05/0.08817, allocations: 27.94 kB / 361.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.47e-05/0.08823, allocations: 39.83 kB / 361.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.08837, allocations: 143.3 kB / 361.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002718/0.08865, allocations: 303 kB / 361.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.08866, allocations: 0 / 361.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.08867, allocations: 0 / 361.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.08868, allocations: 0 / 361.6 MB, free: 9.453 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.001014/0.0897, allocations: 0.6371 MB / 362.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.08974, allocations: 12.03 kB / 362.3 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.036e-05/0.08981, allocations: 62.66 kB / 362.3 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.491e-05/0.08989, allocations: 36.56 kB / 362.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000259/0.09016, allocations: 251.6 kB / 362.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.124e-05/0.09025, allocations: 98.11 kB / 362.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/0.0903, allocations: 24.38 kB / 362.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004909/0.0908, allocations: 257.8 kB / 363 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.09082, allocations: 0 / 363 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.09085, allocations: 8 kB / 363 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.627e-06/0.09086, allocations: 8 kB / 363 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005018/0.09137, allocations: 197.6 kB / 363.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.09257, allocations: 0.8671 MB / 364.1 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004679/0.09305, allocations: 210.6 kB / 364.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002958/0.09336, allocations: 128.7 kB / 364.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.09338, allocations: 0 / 364.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003958/0.09379, allocations: 185.4 kB / 364.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.0938, allocations: 0 / 364.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001364/0.09517, allocations: 499.4 kB / 365.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.09523, allocations: 110.8 kB / 365.2 MB, free: 5.617 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.09542, allocations: 210.8 kB / 365.4 MB, free: 5.398 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.09547, allocations: 33.7 kB / 365.4 MB, free: 5.359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.357e-05/0.09557, allocations: 156.1 kB / 365.6 MB, free: 5.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.223e-05/0.09563, allocations: 63.16 kB / 365.6 MB, free: 5.137 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.09574, allocations: 49.94 kB / 365.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.09584, allocations: 334.8 kB / 366 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/0.09612, allocations: 92.19 kB / 366.1 MB, free: 4.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.09641, allocations: 140.5 kB / 366.2 MB, free: 4.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000459/0.09688, allocations: 255 kB / 366.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.09689, allocations: 0 / 366.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007819/0.09768, allocations: 403.3 kB / 366.9 MB, free: 3.824 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.55e-05/0.09773, allocations: 63.39 kB / 366.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.09774, allocations: 0 / 366.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/0.09807, allocations: 104.9 kB / 367 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/0.09826, allocations: 39.91 kB / 367.1 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001983/0.1003, allocations: 1.866 MB / 368.9 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004625/0.1007, allocations: 75.8 kB / 369 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.1008, allocations: 8 kB / 369 MB, free: 1.523 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.0001424/0.1009, allocations: 150.8 kB / 369.2 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.726e-05/0.101, allocations: 23.72 kB / 369.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.667e-05/0.101, allocations: 29.86 kB / 369.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.101, allocations: 7.938 kB / 369.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.101, allocations: 0 / 369.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.101, allocations: 0 / 369.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004132/0.1015, allocations: 443.2 kB / 369.7 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1015, allocations: 3.938 kB / 369.7 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.1016, allocations: 35.94 kB / 369.7 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002495/0.1019, allocations: 104.8 kB / 369.8 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.1019, allocations: 7.938 kB / 369.8 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1314/0.2333, allocations: 1.853 MB / 371.7 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2333, allocations: 0.8125 kB / 371.7 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008649/0.2342, allocations: 415.7 kB / 372.1 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.089e-05/0.2343, allocations: 112.6 kB / 372.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.2343, allocations: 8.281 kB / 372.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.2346, allocations: 19.03 kB / 372.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.339e-05/0.2347, allocations: 31.39 kB / 372.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.2347, allocations: 8.844 kB / 372.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001079/0.2348, allocations: 148.6 kB / 372.4 MB, free: 18.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2348, allocations: 0 / 372.4 MB, free: 18.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004391/0.2353, allocations: 89.36 kB / 372.5 MB, free: 18.86 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.0009565/0.2362, allocations: 0.9498 MB / 373.4 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007902/0.237, allocations: 489.8 kB / 373.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.237, allocations: 2.781 kB / 373.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004002/0.2374, allocations: 240.8 kB / 374.1 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.2378, allocations: 60.31 kB / 374.2 MB, free: 17.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003507/0.2413, allocations: 2.805 MB / 377 MB, free: 16.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.2415, allocations: 0.7501 MB / 377.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.438e-05/0.2416, allocations: 15.66 kB / 377.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.814e-05/0.2417, allocations: 69.44 kB / 377.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2417, allocations: 0 / 377.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01886/0.2606, allocations: 6.429 MB / 384.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001284/0.2607, allocations: 251.5 kB / 384.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.92/2.18, allocations: 4.641 kB / 384.5 MB, free: 13.94 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)