Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.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.DemoPowerSupply,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupply",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupply,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupply",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001152/0.001152, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 64.12 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.1014, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupply): time 0.003417/0.1049, allocations: 2.045 MB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.106, allocations: 0.5806 MB / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.1062, allocations: 0 / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.1063, allocations: 15.8 kB / 360.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.1065, allocations: 39.7 kB / 360.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002895/0.1068, allocations: 75.83 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002753/0.1071, allocations: 215.3 kB / 360.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.1072, allocations: 45.05 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.1073, allocations: 91.7 kB / 360.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.1075, allocations: 83.72 kB / 360.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.257e-05/0.1076, allocations: 16 kB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.66e-05/0.1077, allocations: 23.98 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.184e-05/0.1077, allocations: 35.86 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.03e-05/0.1078, allocations: 71.7 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.1081, allocations: 187.6 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1081, allocations: 0 / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1081, allocations: 4 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.1081, allocations: 0 / 361.1 MB, free: 10.48 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007905/0.1089, allocations: 492.6 kB / 361.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.109, allocations: 12.03 kB / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.888e-05/0.109, allocations: 46.73 kB / 361.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.1092, allocations: 28.62 kB / 361.7 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000258/0.1094, allocations: 204.2 kB / 361.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.24e-05/0.1095, allocations: 93.67 kB / 362 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/0.1095, allocations: 16.38 kB / 362 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.1099, allocations: 129.4 kB / 362.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.1099, allocations: 4 kB / 362.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.1099, allocations: 4 kB / 362.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.1099, allocations: 4 kB / 362.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003131/0.1102, allocations: 107.9 kB / 362.2 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008302/0.1111, allocations: 0.5109 MB / 362.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003338/0.1114, allocations: 118.6 kB / 362.8 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.1116, allocations: 52.83 kB / 362.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.1116, allocations: 4 kB / 362.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.1116, allocations: 34.5 kB / 362.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.402e-06/0.1116, allocations: 0 / 362.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0008462/0.1125, allocations: 303.4 kB / 363.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.1126, allocations: 55.41 kB / 363.3 MB, free: 8.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.1127, allocations: 150 kB / 363.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.1127, allocations: 25.7 kB / 363.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.395e-05/0.1128, allocations: 119.8 kB / 363.6 MB, free: 7.734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/0.1128, allocations: 31.62 kB / 363.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.37e-05/0.1129, allocations: 33.72 kB / 363.6 MB, free: 7.664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1131, allocations: 322.8 kB / 363.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.1132, allocations: 51.97 kB / 364 MB, free: 7.289 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.1134, allocations: 90.53 kB / 364.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.1137, allocations: 144.2 kB / 364.2 MB, free: 7.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1137, allocations: 0 / 364.2 MB, free: 7.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005997/0.1144, allocations: 263.8 kB / 364.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.5e-05/0.1144, allocations: 37.77 kB / 364.5 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.1144, allocations: 4 kB / 364.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/0.1147, allocations: 73.28 kB / 364.6 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.312e-05/0.1148, allocations: 19.98 kB / 364.6 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001648/0.1164, allocations: 1.625 MB / 366.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003564/0.1168, allocations: 47.83 kB / 366.3 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.1168, allocations: 8.062 kB / 366.3 MB, free: 4.801 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: 3 (dcPowerSupply.cp,dcPowerSupply.cc,dcPowerSupply.cv) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.1169, allocations: 126.9 kB / 366.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.117, allocations: 15.84 kB / 366.4 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004057/0.1174, allocations: 167.1 kB / 366.6 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.1174, allocations: 0 / 366.6 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.1174, allocations: 4 kB / 366.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1174, allocations: 4 kB / 366.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002261/0.1177, allocations: 213.5 kB / 366.8 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1177, allocations: 192 / 366.8 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.093e-05/0.1178, allocations: 15.98 kB / 366.8 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001669/0.1179, allocations: 84.73 kB / 366.9 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.118, allocations: 4 kB / 366.9 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/0.1194, allocations: 1.602 MB / 368.5 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1194, allocations: 32 / 368.5 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004009/0.1198, allocations: 256.2 kB / 368.8 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-05/0.1199, allocations: 89.02 kB / 368.9 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.1199, allocations: 0 / 368.9 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.1201, allocations: 15.98 kB / 368.9 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.391e-05/0.1201, allocations: 16.17 kB / 368.9 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.1202, allocations: 4 kB / 368.9 MB, free: 1.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.288e-05/0.1203, allocations: 114.6 kB / 369 MB, free: 1.848 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1203, allocations: 4 kB / 369 MB, free: 1.844 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003519/0.1206, allocations: 47.91 kB / 369.1 MB, free: 1.797 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (dcPowerSupply.cv,dcPowerSupply.cc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006823/0.1213, allocations: 0.7836 MB / 369.8 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006161/0.1219, allocations: 321.8 kB / 370.2 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.122, allocations: 4 kB / 370.2 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002969/0.1223, allocations: 178.6 kB / 370.3 MB, free: 464 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.1226, allocations: 27.97 kB / 370.4 MB, free: 436 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1476/0.2702, allocations: 1.945 MB / 372.3 MB, free: 18.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001356/0.2703, allocations: 0.7078 MB / 373 MB, free: 18.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.274e-05/0.2704, allocations: 8.234 kB / 373 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.556e-05/0.2705, allocations: 35.66 kB / 373.1 MB, free: 18.25 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2705, allocations: 2.719 kB / 373.1 MB, free: 18.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02426/0.2948, allocations: 4.413 MB / 377.5 MB, free: 17.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.46, allocations: 5.422 kB / 377.5 MB, free: 17.79 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupply.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe 2>&1)