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.001086/0.001086, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001075/0.001075, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2984, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupply): time 0.003855/0.3023, allocations: 2.05 MB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.3036, allocations: 0.5688 MB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.3038, allocations: 4 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.304, allocations: 19.78 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001434/0.3041, allocations: 35.7 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.3045, allocations: 71.84 kB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003325/0.3048, allocations: 223.3 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.305, allocations: 53.02 kB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001599/0.3052, allocations: 79.7 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.3054, allocations: 83.72 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.572e-05/0.3054, allocations: 20 kB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.498e-05/0.3055, allocations: 31.94 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.981e-05/0.3056, allocations: 31.89 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.3057, allocations: 83.64 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000298/0.306, allocations: 186.3 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.306, allocations: 0 / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.306, allocations: 0 / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.306, allocations: 4 kB / 412.3 MB, free: 14 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.0009085/0.3069, allocations: 492.5 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.307, allocations: 12.03 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.565e-05/0.3071, allocations: 42.75 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.3072, allocations: 20.84 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00037/0.3076, allocations: 212.2 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.806e-05/0.3077, allocations: 93.66 kB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.848e-05/0.3078, allocations: 12.38 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.3081, allocations: 132.6 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3081, allocations: 4 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.3081, allocations: 4 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.3081, allocations: 4 kB / 413.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003092/0.3085, allocations: 111.7 kB / 413.4 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008814/0.3093, allocations: 0.5111 MB / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003355/0.3097, allocations: 110.7 kB / 414 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.3098, allocations: 56.77 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.3099, allocations: 4 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.3099, allocations: 38.5 kB / 414.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.3099, allocations: 0 / 414.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0008602/0.3108, allocations: 303.4 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.023e-05/0.3108, allocations: 51.41 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.3109, allocations: 154.9 kB / 414.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.311, allocations: 33.7 kB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.959e-05/0.3111, allocations: 119.9 kB / 414.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.404e-05/0.3111, allocations: 23.81 kB / 414.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.905e-05/0.3112, allocations: 30.08 kB / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.3113, allocations: 326.8 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.3115, allocations: 51.97 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.3116, allocations: 94.55 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003078/0.312, allocations: 152.2 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.312, allocations: 0 / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005951/0.3126, allocations: 271.8 kB / 415.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.3127, allocations: 33.7 kB / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3127, allocations: 0 / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002456/0.313, allocations: 84.86 kB / 415.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.029e-05/0.3131, allocations: 15.98 kB / 415.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001823/0.3149, allocations: 1.61 MB / 417.4 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004046/0.3153, allocations: 52.19 kB / 417.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.3154, allocations: 11.98 kB / 417.5 MB, free: 8.312 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.0001129/0.3155, allocations: 125.8 kB / 417.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.227e-05/0.3155, allocations: 19.84 kB / 417.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003925/0.3159, allocations: 163.1 kB / 417.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.316, allocations: 4 kB / 417.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.316, allocations: 4 kB / 417.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.316, allocations: 0 / 417.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000234/0.3162, allocations: 221.5 kB / 418 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3162, allocations: 0 / 418 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.073e-05/0.3163, allocations: 15.92 kB / 418 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002481/0.3166, allocations: 80.75 kB / 418.1 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.3166, allocations: 7.984 kB / 418.1 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001617/0.3182, allocations: 1.598 MB / 419.7 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3182, allocations: 0 / 419.7 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003857/0.3186, allocations: 260.3 kB / 420 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.816e-05/0.3187, allocations: 93 kB / 420.1 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.3187, allocations: 4.062 kB / 420.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.3188, allocations: 15.98 kB / 420.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/0.3189, allocations: 7.984 kB / 420.1 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.3189, allocations: 4 kB / 420.1 MB, free: 5.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.755e-05/0.319, allocations: 111.2 kB / 420.2 MB, free: 5.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.319, allocations: 0 / 420.2 MB, free: 5.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003074/0.3193, allocations: 51.94 kB / 420.3 MB, free: 5.305 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.0006956/0.32, allocations: 0.7874 MB / 421.1 MB, free: 4.488 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006645/0.3207, allocations: 318 kB / 421.4 MB, free: 4.152 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3207, allocations: 0 / 421.4 MB, free: 4.152 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.321, allocations: 174.6 kB / 421.5 MB, free: 3.969 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.3213, allocations: 38.88 kB / 421.6 MB, free: 3.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00264/0.324, allocations: 1.972 MB / 423.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.3243, allocations: 0.7045 MB / 424.2 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.351e-05/0.3244, allocations: 4.547 kB / 424.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.27e-05/0.3244, allocations: 35.44 kB / 424.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3244, allocations: 4 kB / 424.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02443/0.3489, allocations: 4.491 MB / 428.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.34, allocations: 16.73 kB / 428.8 MB, free: 12.73 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)