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.001461/0.001461, allocations: 92.7 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001881/0.001881, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002313/0.0002314, allocations: 4 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1136, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003041/0.1167, allocations: 2.227 MB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.1178, allocations: 0.651 MB / 361.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.1179, allocations: 0 / 361.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.1181, allocations: 27.77 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00015/0.1182, allocations: 67.47 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002555/0.1185, allocations: 67.91 kB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003347/0.1189, allocations: 314.7 kB / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002065/0.1191, allocations: 76.3 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.1192, allocations: 111.6 kB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.1194, allocations: 131.4 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.046e-05/0.1195, allocations: 16 kB / 362 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.991e-05/0.1195, allocations: 16 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.003e-05/0.1196, allocations: 47.81 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.548e-05/0.1197, allocations: 69.58 kB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.1199, allocations: 235.6 kB / 362.3 MB, free: 9.914 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.1199, allocations: 0 / 362.3 MB, free: 9.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1199, allocations: 0 / 362.3 MB, free: 9.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.1199, allocations: 0 / 362.3 MB, free: 9.914 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.0009763/0.1209, allocations: 0.6113 MB / 363 MB, free: 9.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.121, allocations: 8.031 kB / 363 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.14e-05/0.121, allocations: 54.55 kB / 363 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.439e-05/0.1211, allocations: 31.66 kB / 363 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.1215, allocations: 254.2 kB / 363.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.1216, allocations: 105.5 kB / 363.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.811e-05/0.1217, allocations: 24 kB / 363.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005189/0.1222, allocations: 257.8 kB / 363.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1222, allocations: 4 kB / 363.7 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.1223, allocations: 7.984 kB / 363.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.1223, allocations: 4 kB / 363.7 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005169/0.1228, allocations: 221.6 kB / 363.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.1241, allocations: 0.8633 MB / 364.8 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004721/0.1246, allocations: 226.1 kB / 365 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003018/0.1249, allocations: 128.8 kB / 365.1 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.1249, allocations: 4 kB / 365.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004088/0.1253, allocations: 183.7 kB / 365.3 MB, free: 6.719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.774e-06/0.1254, allocations: 0 / 365.3 MB, free: 6.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.00135/0.1267, allocations: 0.5109 MB / 365.8 MB, free: 6.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.532e-05/0.1268, allocations: 114.8 kB / 365.9 MB, free: 6.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/0.127, allocations: 202.9 kB / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.127, allocations: 33.7 kB / 366.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.649e-05/0.1272, allocations: 148.3 kB / 366.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.913e-05/0.1272, allocations: 63.09 kB / 366.4 MB, free: 5.578 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.936e-05/0.1272, allocations: 11.94 kB / 366.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1274, allocations: 330.8 kB / 366.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002515/0.1276, allocations: 112.2 kB / 366.8 MB, free: 5.121 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000265/0.1279, allocations: 135.8 kB / 366.9 MB, free: 4.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002687/0.1282, allocations: 154.2 kB / 367.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1282, allocations: 0 / 367.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007449/0.129, allocations: 423.8 kB / 367.5 MB, free: 4.383 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.217e-05/0.129, allocations: 67.3 kB / 367.6 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.129, allocations: 0 / 367.6 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003156/0.1293, allocations: 124.7 kB / 367.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.1295, allocations: 27.98 kB / 367.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.1317, allocations: 1.864 MB / 369.6 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000437/0.1322, allocations: 83.81 kB / 369.7 MB, free: 2.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.923e-05/0.1322, allocations: 19.98 kB / 369.7 MB, free: 2.059 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 ($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 () * 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 (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.0001659/0.1324, allocations: 138.8 kB / 369.8 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.1324, allocations: 23.72 kB / 369.8 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.711e-05/0.1325, allocations: 29.86 kB / 369.9 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.1325, allocations: 4 kB / 369.9 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.1325, allocations: 0 / 369.9 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.1325, allocations: 0 / 369.9 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004925/0.133, allocations: 451.1 kB / 370.3 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.133, allocations: 0 / 370.3 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001503/0.1332, allocations: 27.97 kB / 370.3 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002501/0.1335, allocations: 108.8 kB / 370.4 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.1335, allocations: 4 kB / 370.5 MB, free: 1.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2419/0.3754, allocations: 1.864 MB / 372.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3754, allocations: 0 / 372.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009797/0.3764, allocations: 434.6 kB / 372.7 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.58e-05/0.3765, allocations: 113 kB / 372.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.559e-05/0.3766, allocations: 6.953 kB / 372.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.3768, allocations: 32.86 kB / 372.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.3769, allocations: 24.73 kB / 372.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.3769, allocations: 8.469 kB / 372.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.3771, allocations: 143.9 kB / 373.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3771, allocations: 0 / 373.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004878/0.3776, allocations: 93.78 kB / 373.2 MB, free: 18.41 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 (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.001083/0.3786, allocations: 0.9674 MB / 374.1 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000929/0.3796, allocations: 0.4983 MB / 374.6 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3796, allocations: 0 / 374.6 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000447/0.3801, allocations: 248 kB / 374.9 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.3804, allocations: 57.2 kB / 374.9 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003143/0.3836, allocations: 1.619 MB / 376.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.3839, allocations: 0.7492 MB / 377.3 MB, free: 16.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.384, allocations: 17.72 kB / 377.3 MB, free: 16.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.3842, allocations: 65.56 kB / 377.4 MB, free: 16.14 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3842, allocations: 0 / 377.4 MB, free: 16.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03602/0.4202, allocations: 6.212 MB / 383.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.4205, allocations: 236.6 kB / 383.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.533, allocations: 0 / 383.8 MB, free: 14.99 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/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)