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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001062/0.001062, allocations: 203.1 kB / 8.542 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.141/1.141, allocations: 225.5 MB / 234.4 MB, free: 3.441 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008465/0.0008465, allocations: 92.62 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08993/0.0908, allocations: 56.91 MB / 343.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08147/0.1723, allocations: 51.48 MB / 394.7 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.21/0.3824, allocations: 79.69 MB / 474.4 MB, free: 12.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001582/0.3826, allocations: 65.77 kB / 474.5 MB, free: 12.28 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.01161/0.3942, allocations: 4.588 MB / 479.1 MB, free: 9.477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.3942, allocations: 12 kB / 479.1 MB, free: 9.465 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.885e-05/0.3943, allocations: 27.72 kB / 479.1 MB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.3945, allocations: 255.6 kB / 479.3 MB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.873e-05/0.3946, allocations: 89.55 kB / 479.4 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.3947, allocations: 16 kB / 479.4 MB, free: 9.051 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002812/0.3949, allocations: 150.8 kB / 479.6 MB, free: 8.961 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.3952, allocations: 202.1 kB / 479.8 MB, free: 8.797 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.3953, allocations: 0 / 479.8 MB, free: 8.797 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.368e-05/0.3953, allocations: 3.906 kB / 479.8 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.3953, allocations: 4 kB / 479.8 MB, free: 8.789 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.3964, allocations: 0.846 MB / 480.6 MB, free: 8.027 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.3966, allocations: 151 kB / 480.8 MB, free: 7.922 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.3968, allocations: 100.7 kB / 480.9 MB, free: 7.852 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.3969, allocations: 7.984 kB / 480.9 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/0.397, allocations: 136.4 kB / 481 MB, free: 7.715 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.283e-06/0.397, allocations: 0 / 481 MB, free: 7.715 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005299/0.3976, allocations: 252.7 kB / 481.3 MB, free: 7.508 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.67e-05/0.3976, allocations: 110.8 kB / 481.4 MB, free: 7.375 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.3977, allocations: 166.5 kB / 481.5 MB, free: 7.227 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.3978, allocations: 25.7 kB / 481.6 MB, free: 7.195 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.695e-05/0.3978, allocations: 137.9 kB / 481.7 MB, free: 7.062 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.789e-05/0.3979, allocations: 67.36 kB / 481.8 MB, free: 7.008 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.725e-05/0.3979, allocations: 4 kB / 481.8 MB, free: 7.004 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.086e-05/0.3979, allocations: 327.6 kB / 482.1 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.3981, allocations: 77.97 kB / 482.2 MB, free: 6.633 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.3982, allocations: 105.5 kB / 482.3 MB, free: 6.555 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001202/0.3983, allocations: 58.61 kB / 482.3 MB, free: 6.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3983, allocations: 0 / 482.3 MB, free: 6.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000407/0.3987, allocations: 274.6 kB / 482.6 MB, free: 6.312 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.3988, allocations: 14.12 kB / 482.6 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.3988, allocations: 0 / 482.6 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002699/0.3991, allocations: 103.2 kB / 482.7 MB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.3992, allocations: 35.98 kB / 482.8 MB, free: 6.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.4007, allocations: 1.751 MB / 484.5 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004093/0.4011, allocations: 64.73 kB / 484.6 MB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.4011, allocations: 8 kB / 484.6 MB, free: 4.473 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 7.2e-05/0.4012, allocations: 120.3 kB / 484.7 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.06e-05/0.4012, allocations: 23.73 kB / 484.7 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.433e-05/0.4013, allocations: 20.66 kB / 484.7 MB, free: 4.316 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.4013, allocations: 4 kB / 484.7 MB, free: 4.312 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.4013, allocations: 0 / 484.7 MB, free: 4.312 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.4013, allocations: 7.891 kB / 484.7 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002983/0.4016, allocations: 394.9 kB / 485.1 MB, free: 3.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4016, allocations: 4 kB / 485.1 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001617/0.4018, allocations: 31.97 kB / 485.2 MB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002124/0.402, allocations: 107.7 kB / 485.3 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.402, allocations: 0 / 485.3 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001342/0.4034, allocations: 1.733 MB / 487 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4034, allocations: 0 / 487 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000572/0.404, allocations: 379.7 kB / 487.4 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006925/0.4047, allocations: 0.8281 MB / 488.2 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.101e-05/0.4048, allocations: 108.5 kB / 488.3 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.67e-05/0.4048, allocations: 7.984 kB / 488.3 MB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.405, allocations: 28.05 kB / 488.3 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.597e-05/0.4051, allocations: 27.39 kB / 488.4 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.4051, allocations: 7.906 kB / 488.4 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.967e-05/0.4052, allocations: 133.2 kB / 488.5 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009289/0.4061, allocations: 87.83 kB / 488.6 MB, free: 0.7734 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.0001363/0.4063, allocations: 103.2 kB / 488.7 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005047/0.4068, allocations: 338.1 kB / 489 MB, free: 384 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4068, allocations: 0 / 489 MB, free: 384 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002525/0.4071, allocations: 190.8 kB / 489.2 MB, free: 216 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.4073, allocations: 37.19 kB / 489.2 MB, free: 188 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.4085, allocations: 366.1 kB / 489.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.4088, allocations: 0.7666 MB / 490.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4088, allocations: 4 kB / 490.4 MB, free: 15.04 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)