Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00164/0.001639, allocations: 180.8 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.016/2.016, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001154/0.001153, allocations: 94.84 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2709/0.2709, allocations: 38.05 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004906/0.0004906, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1099, allocations: 56.32 MB / 479.1 MB, free: 1.957 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5231/0.633, allocations: 98.24 MB / 0.5638 GB, free: 1.426 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/0.6334, allocations: 99.2 kB / 0.5639 GB, free: 1.375 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06808/0.7015, allocations: 16.12 MB / 0.5797 GB, free: 3.613 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.7016, allocations: 0 / 0.5797 GB, free: 3.613 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.661e-05/0.7016, allocations: 12 kB / 0.5797 GB, free: 3.602 MB / 378.7 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.002842/0.7045, allocations: 0.9367 MB / 0.5806 GB, free: 2.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.7045, allocations: 8.031 kB / 0.5806 GB, free: 2.652 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002465/0.7048, allocations: 104.6 kB / 0.5807 GB, free: 2.578 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002065/0.705, allocations: 71.16 kB / 0.5808 GB, free: 2.508 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00459/0.7096, allocations: 1.173 MB / 0.5819 GB, free: 1.531 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002085/0.7099, allocations: 110 kB / 0.582 GB, free: 1.434 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.7101, allocations: 63.81 kB / 0.5821 GB, free: 1.391 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/0.7122, allocations: 0.7709 MB / 0.5828 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.706e-05/0.7122, allocations: 0 / 0.5828 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.801e-05/0.7123, allocations: 27.06 kB / 0.5829 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.202e-05/0.7124, allocations: 15.98 kB / 0.5829 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002105/0.7145, allocations: 0.622 MB / 0.5835 GB, free: 356 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005431/0.72, allocations: 2.51 MB / 0.5859 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001597/0.7216, allocations: 434.8 kB / 0.5864 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.899e-05/0.7217, allocations: 4.344 kB / 0.5864 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000673/0.7224, allocations: 242.2 kB / 0.5866 GB, free: 13.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=36): time 3.085e-06/0.7224, allocations: 0 / 0.5866 GB, free: 13.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.005049/0.7274, allocations: 0.8349 MB / 0.5874 GB, free: 13.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.538e-05/0.7275, allocations: 143.7 kB / 0.5875 GB, free: 12.85 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006235/0.7282, allocations: 350.4 kB / 0.5879 GB, free: 12.56 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.805e-05/0.7282, allocations: 31.83 kB / 0.5879 GB, free: 12.53 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003478/0.7286, allocations: 359.9 kB / 0.5883 GB, free: 12.24 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.7288, allocations: 126 kB / 0.5884 GB, free: 12.13 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.59e-05/0.7288, allocations: 6.188 kB / 0.5884 GB, free: 12.13 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.729, allocations: 329.4 kB / 0.5887 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005068/0.7295, allocations: 129.2 kB / 0.5888 GB, free: 11.72 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005959/0.7301, allocations: 244.3 kB / 0.589 GB, free: 11.48 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005688/0.7307, allocations: 155.3 kB / 0.5892 GB, free: 11.39 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.7307, allocations: 4 kB / 0.5892 GB, free: 11.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00221/0.7329, allocations: 0.5314 MB / 0.5897 GB, free: 10.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.733, allocations: 8 kB / 0.5897 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.733, allocations: 7.938 kB / 0.5897 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007967/0.7338, allocations: 153.7 kB / 0.5899 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005877/0.7344, allocations: 79.84 kB / 0.59 GB, free: 10.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005382/0.7398, allocations: 2.077 MB / 0.592 GB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006421/0.7405, allocations: 66.59 kB / 0.592 GB, free: 8.816 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.087e-05/0.7406, allocations: 15.25 kB / 0.5921 GB, free: 8.805 MB / 394.7 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,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.gate,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.0005512/0.7411, allocations: 248.8 kB / 0.5923 GB, free: 8.613 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.7412, allocations: 43.53 kB / 0.5923 GB, free: 8.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002196/0.7434, allocations: 484 kB / 0.5928 GB, free: 8.219 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.7435, allocations: 4 kB / 0.5928 GB, free: 8.215 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.7435, allocations: 7.984 kB / 0.5928 GB, free: 8.207 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.595e-05/0.7435, allocations: 7.938 kB / 0.5928 GB, free: 8.199 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001354/0.7449, allocations: 0.6752 MB / 0.5935 GB, free: 7.605 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.7449, allocations: 0 / 0.5935 GB, free: 7.605 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005339/0.7455, allocations: 55.94 kB / 0.5935 GB, free: 7.551 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007469/0.7462, allocations: 141.9 kB / 0.5937 GB, free: 7.438 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.821e-05/0.7463, allocations: 11.52 kB / 0.5937 GB, free: 7.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005318/0.7516, allocations: 2.072 MB / 0.5957 GB, free: 5.547 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/0.7517, allocations: 11.95 kB / 0.5957 GB, free: 5.535 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002824/0.7545, allocations: 0.7219 MB / 0.5964 GB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002852/0.7548, allocations: 144.6 kB / 0.5966 GB, free: 4.801 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.347e-05/0.7549, allocations: 14.73 kB / 0.5966 GB, free: 4.793 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00043/0.7554, allocations: 23.23 kB / 0.5966 GB, free: 4.773 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.7556, allocations: 34.7 kB / 0.5966 GB, free: 4.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.483e-05/0.7556, allocations: 11.92 kB / 0.5966 GB, free: 4.734 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004939/0.7561, allocations: 283.4 kB / 0.5969 GB, free: 4.52 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.7561, allocations: 0 / 0.5969 GB, free: 4.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000883/0.757, allocations: 165.8 kB / 0.5971 GB, free: 4.371 MB / 394.7 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.t0,chopper.modulator.t1,chopper.chopper.gate,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.00336/0.7604, allocations: 1.499 MB / 0.5985 GB, free: 3.012 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.7621, allocations: 0.5059 MB / 0.599 GB, free: 2.605 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.7621, allocations: 192 / 0.599 GB, free: 2.605 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009046/0.763, allocations: 338.3 kB / 0.5993 GB, free: 2.328 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.7641, allocations: 136.3 kB / 0.5995 GB, free: 2.227 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009407/0.7735, allocations: 5.589 MB / 0.6049 GB, free: 13 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007484/0.7743, allocations: 0.939 MB / 0.6059 GB, free: 12.06 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000375/0.7747, allocations: 197.5 kB / 0.606 GB, free: 12.01 MB / 410.7 MB Notification: Performance of SimCode: time 9.92e-07/0.7747, allocations: 0 / 0.606 GB, free: 12.01 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.798/3.573, allocations: 13.04 MB / 0.6188 GB, free: 15.12 MB / 426.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)