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.001721/0.001726, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001986/0.001986, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 71.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2942, allocations: 50.53 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupply): time 0.003283/0.2976, allocations: 2.057 MB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009839/0.2986, allocations: 0.5688 MB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.577e-05/0.2987, allocations: 4 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001066/0.2988, allocations: 11.86 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.76e-05/0.2989, allocations: 43.62 kB / 411.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002488/0.2991, allocations: 63.84 kB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002701/0.2994, allocations: 227.3 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.2996, allocations: 41.05 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.2997, allocations: 83.77 kB / 411.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.2999, allocations: 91.69 kB / 412 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.105e-05/0.2999, allocations: 16 kB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.587e-05/0.3, allocations: 24 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.269e-05/0.3, allocations: 39.84 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.351e-05/0.3001, allocations: 75.66 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.3004, allocations: 186.3 kB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3004, allocations: 0 / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3004, allocations: 0 / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.3004, allocations: 0 / 412.3 MB, free: 14.01 MB / 334.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.0007668/0.3012, allocations: 496.5 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.3012, allocations: 8.031 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.867e-05/0.3013, allocations: 50.67 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.3014, allocations: 20.84 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002974/0.3017, allocations: 216.2 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.714e-05/0.3018, allocations: 89.67 kB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.411e-05/0.3019, allocations: 16.38 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.3022, allocations: 124.6 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.3022, allocations: 4 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.3022, allocations: 11.98 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3022, allocations: 0 / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003024/0.3025, allocations: 111.8 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008625/0.3034, allocations: 0.511 MB / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000348/0.3038, allocations: 122.6 kB / 414 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.3039, allocations: 44.84 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.3039, allocations: 0 / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.304, allocations: 50.42 kB / 414.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 9.92e-07/0.304, allocations: 0 / 414.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000821/0.3048, allocations: 303.4 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.3048, allocations: 51.41 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.305, allocations: 155.1 kB / 414.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.305, allocations: 29.7 kB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.339e-05/0.3051, allocations: 115.9 kB / 414.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.932e-05/0.3052, allocations: 27.8 kB / 414.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.233e-05/0.3052, allocations: 37.7 kB / 414.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.3054, allocations: 318.8 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.3055, allocations: 59.97 kB / 415.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.3057, allocations: 90.17 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.306, allocations: 136.2 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.306, allocations: 4 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005921/0.3066, allocations: 271.8 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.313e-05/0.3067, allocations: 41.69 kB / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3067, allocations: 480 / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002221/0.3069, allocations: 72.83 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.213e-05/0.307, allocations: 15.98 kB / 415.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/0.309, allocations: 1.629 MB / 417.5 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003369/0.3093, allocations: 48.05 kB / 417.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.3094, allocations: 8 kB / 417.5 MB, free: 8.316 MB / 334.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.0001163/0.3095, allocations: 121.8 kB / 417.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.103e-05/0.3095, allocations: 15.84 kB / 417.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003945/0.3099, allocations: 167.1 kB / 417.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.31, allocations: 0 / 417.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.52e-07/0.31, allocations: 4 kB / 417.8 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.31, allocations: 0 / 417.8 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002882/0.3103, allocations: 221.5 kB / 418 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3103, allocations: 0 / 418 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.929e-05/0.3104, allocations: 12 kB / 418 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001617/0.3105, allocations: 76.75 kB / 418.1 MB, free: 7.645 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.3106, allocations: 0 / 418.1 MB, free: 7.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001619/0.3122, allocations: 1.614 MB / 419.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3122, allocations: 0 / 419.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004039/0.3126, allocations: 252.2 kB / 420 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.239e-05/0.3127, allocations: 85.02 kB / 420.1 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.3127, allocations: 12.06 kB / 420.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.3128, allocations: 11.98 kB / 420.1 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/0.3129, allocations: 15.92 kB / 420.1 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.3129, allocations: 4 kB / 420.1 MB, free: 5.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.629e-05/0.313, allocations: 111.2 kB / 420.2 MB, free: 5.371 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.313, allocations: 0 / 420.2 MB, free: 5.371 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002936/0.3133, allocations: 48.12 kB / 420.3 MB, free: 5.324 MB / 334.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.0007522/0.3141, allocations: 0.7951 MB / 421.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006736/0.3148, allocations: 322 kB / 421.4 MB, free: 4.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3148, allocations: 0 / 421.4 MB, free: 4.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002833/0.3151, allocations: 170.6 kB / 421.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.3154, allocations: 30.31 kB / 421.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002941/0.3184, allocations: 1.972 MB / 423.5 MB, free: 1.871 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003905/0.3188, allocations: 0.7123 MB / 424.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.8e-05/0.3188, allocations: 8.547 kB / 424.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.86e-05/0.3189, allocations: 31.89 kB / 424.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3189, allocations: 0 / 424.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04372/0.3626, allocations: 4.487 MB / 428.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.78, allocations: 12.8 kB / 428.8 MB, free: 12.75 MB / 350.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)