Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008319/0.000832, allocations: 94.11 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009041/0.0009041, allocations: 180.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.207/1.207, allocations: 223.2 MB / 241.1 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2921/0.2921, allocations: 38.08 MB / 330.3 MB, free: 14.17 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002627/0.0002627, allocations: 8 kB / 400.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2415, allocations: 59.15 MB / 459.2 MB, free: 30.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.005596/0.2471, allocations: 6.118 MB / 465.3 MB, free: 25.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002701/0.2498, allocations: 1.855 MB / 467.2 MB, free: 24.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005086/0.2504, allocations: 31.31 kB / 467.2 MB, free: 24.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005696/0.251, allocations: 214.2 kB / 467.4 MB, free: 24.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008154/0.2518, allocations: 310.2 kB / 467.7 MB, free: 24.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005247/0.2523, allocations: 193 kB / 467.9 MB, free: 24.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007269/0.2531, allocations: 0.5451 MB / 468.5 MB, free: 23.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004257/0.2535, allocations: 345.2 kB / 468.8 MB, free: 23.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00051/0.254, allocations: 332.7 kB / 469.1 MB, free: 23.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004746/0.2545, allocations: 334.4 kB / 469.5 MB, free: 23.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.983e-05/0.2546, allocations: 36.66 kB / 469.5 MB, free: 23.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.2547, allocations: 36.72 kB / 469.5 MB, free: 23.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002156/0.2549, allocations: 206.4 kB / 469.7 MB, free: 23.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.2551, allocations: 167.1 kB / 469.9 MB, free: 23.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008738/0.2559, allocations: 0.8095 MB / 470.7 MB, free: 23.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.2559, allocations: 0 / 470.7 MB, free: 23.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.256, allocations: 1.094 kB / 470.7 MB, free: 23.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.256, allocations: 0 / 470.7 MB, free: 23.07 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001597/0.2576, allocations: 0.9179 MB / 471.6 MB, free: 22.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2576, allocations: 9.031 kB / 471.6 MB, free: 22.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000124/0.2578, allocations: 103.8 kB / 471.7 MB, free: 22.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.2579, allocations: 77.92 kB / 471.8 MB, free: 22.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.2589, allocations: 0.6129 MB / 472.4 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001169/0.2591, allocations: 113.1 kB / 472.5 MB, free: 21.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.245e-05/0.2592, allocations: 55.19 kB / 472.6 MB, free: 21.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.2604, allocations: 0.7531 MB / 473.3 MB, free: 21.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.2604, allocations: 5.125 kB / 473.3 MB, free: 21.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.503e-05/0.2605, allocations: 22.73 kB / 473.4 MB, free: 21.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.2605, allocations: 14.84 kB / 473.4 MB, free: 21.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.2616, allocations: 0.6281 MB / 474 MB, free: 21.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0028/0.2644, allocations: 2.479 MB / 476.5 MB, free: 19.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008206/0.2652, allocations: 444.6 kB / 476.9 MB, free: 19.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.2653, allocations: 10.92 kB / 476.9 MB, free: 19.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003668/0.2657, allocations: 249.7 kB / 477.2 MB, free: 19.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.746e-06/0.2657, allocations: 1.688 kB / 477.2 MB, free: 19.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002739/0.2684, allocations: 0.8635 MB / 478 MB, free: 18.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.2685, allocations: 141 kB / 478.2 MB, free: 18.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000359/0.2688, allocations: 399.8 kB / 478.6 MB, free: 18.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.2689, allocations: 31.89 kB / 478.6 MB, free: 18.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.269, allocations: 321.6 kB / 478.9 MB, free: 17.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.852e-05/0.2691, allocations: 120.8 kB / 479 MB, free: 17.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.716e-05/0.2691, allocations: 10.19 kB / 479 MB, free: 17.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.857e-05/0.2692, allocations: 361.4 kB / 479.4 MB, free: 17.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000257/0.2695, allocations: 125.8 kB / 479.5 MB, free: 17.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/0.2698, allocations: 244 kB / 479.8 MB, free: 17.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002925/0.2701, allocations: 157.1 kB / 479.9 MB, free: 16.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.2701, allocations: 4.969 kB / 479.9 MB, free: 16.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008666/0.2709, allocations: 0.5107 MB / 480.4 MB, free: 16.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.271, allocations: 10.86 kB / 480.4 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.271, allocations: 3.719 kB / 480.4 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004252/0.2714, allocations: 145.7 kB / 480.6 MB, free: 16.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002843/0.2717, allocations: 83.66 kB / 480.7 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00268/0.2744, allocations: 2.077 MB / 482.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003541/0.2748, allocations: 58.28 kB / 482.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.094e-05/0.2748, allocations: 13.25 kB / 482.8 MB, free: 14.74 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,chopper.modulator.gate,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.diode.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003119/0.2751, allocations: 250.6 kB / 483.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.035e-05/0.2752, allocations: 49.61 kB / 483.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001123/0.2763, allocations: 480.4 kB / 483.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2763, allocations: 4.062 kB / 483.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2763, allocations: 2.719 kB / 483.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.2764, allocations: 7.922 kB / 483.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006557/0.277, allocations: 0.6785 MB / 484.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.277, allocations: 1.906 kB / 484.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002511/0.2773, allocations: 60.34 kB / 484.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003853/0.2777, allocations: 137.3 kB / 484.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.546e-05/0.2777, allocations: 11.81 kB / 484.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002494/0.2802, allocations: 2.072 MB / 486.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2802, allocations: 5.266 kB / 486.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.2815, allocations: 0.7259 MB / 487.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.2817, allocations: 148.5 kB / 487.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.366e-05/0.2817, allocations: 11.98 kB / 487.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.282, allocations: 19.98 kB / 487.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.108e-05/0.2821, allocations: 43.84 kB / 487.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.2821, allocations: 11.98 kB / 487.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000221/0.2823, allocations: 275.2 kB / 487.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2823, allocations: 0 / 487.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005346/0.2829, allocations: 159.5 kB / 487.9 MB, free: 10.34 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.00146/0.2843, allocations: 1.486 MB / 489.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008124/0.2852, allocations: 0.4948 MB / 489.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2852, allocations: 0 / 489.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000442/0.2856, allocations: 338.3 kB / 490.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005487/0.2862, allocations: 140.5 kB / 490.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004626/0.2908, allocations: 5.552 MB / 495.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.2911, allocations: 0.9483 MB / 496.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002739/0.2914, allocations: 84.64 kB / 497 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/0.2916, allocations: 191.4 kB / 497.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2916, allocations: 0 / 497.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.3162, allocations: 12.18 MB / 0.4974 GB, free: 4.957 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/0.3164, allocations: 211.4 kB / 0.4976 GB, free: 4.719 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/2.143, allocations: 0 / 0.4976 GB, free: 4.719 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat does not exist to compare? outputFormat=mat