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.002056/0.002056, allocations: 182.8 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.111/2.111, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001104/0.001104, allocations: 94.64 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2626/0.2626, allocations: 38 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.552e-05/2.562e-05, allocations: 4 kB / 409.9 MB, free: 35.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4939/0.6023, allocations: 97.48 MB / 0.5505 GB, free: 9.883 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003158/0.6026, allocations: 94.41 kB / 0.5506 GB, free: 9.867 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06111/0.6638, allocations: 15.95 MB / 0.5662 GB, free: 15.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.939e-06/0.6638, allocations: 0 / 0.5662 GB, free: 15.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.536e-05/0.6639, allocations: 15.94 kB / 0.5662 GB, free: 15.79 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.002578/0.6665, allocations: 0.8718 MB / 0.5671 GB, free: 14.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.6665, allocations: 11.97 kB / 0.5671 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003062/0.6669, allocations: 79.16 kB / 0.5672 GB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004658/0.6715, allocations: 1.153 MB / 0.5683 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.6718, allocations: 91.77 kB / 0.5684 GB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.672, allocations: 40 kB / 0.5684 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001458/0.6734, allocations: 497.2 kB / 0.5689 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.675, allocations: 0.6317 MB / 0.5695 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.622e-05/0.6751, allocations: 7.938 kB / 0.5695 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.87e-05/0.6751, allocations: 3.984 kB / 0.5695 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.361e-05/0.6752, allocations: 16 kB / 0.5695 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005411/0.6806, allocations: 2.378 MB / 0.5718 GB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.6818, allocations: 398.9 kB / 0.5722 GB, free: 10.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004537/0.6823, allocations: 179.1 kB / 0.5724 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.581e-05/0.6824, allocations: 4.281 kB / 0.5724 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004979/0.6829, allocations: 216.6 kB / 0.5726 GB, free: 10.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.795e-06/0.6829, allocations: 4 kB / 0.5726 GB, free: 10.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001643/0.6845, allocations: 398.8 kB / 0.573 GB, free: 10.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.77e-05/0.6847, allocations: 136.6 kB / 0.5731 GB, free: 9.891 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005199/0.6852, allocations: 285.4 kB / 0.5734 GB, free: 9.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.802e-05/0.6853, allocations: 29.08 kB / 0.5734 GB, free: 9.629 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003514/0.6856, allocations: 361.9 kB / 0.5738 GB, free: 9.324 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.6858, allocations: 118.2 kB / 0.5739 GB, free: 9.223 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.627e-05/0.6858, allocations: 0 / 0.5739 GB, free: 9.223 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.686, allocations: 327.4 kB / 0.5742 GB, free: 8.902 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/0.6863, allocations: 105.5 kB / 0.5743 GB, free: 8.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003977/0.6867, allocations: 226.6 kB / 0.5745 GB, free: 8.625 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003621/0.6871, allocations: 133.4 kB / 0.5746 GB, free: 8.535 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.6871, allocations: 0 / 0.5746 GB, free: 8.535 MB / 378.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001612/0.6888, allocations: 463.2 kB / 0.5751 GB, free: 8.176 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.6888, allocations: 7.938 kB / 0.5751 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.6888, allocations: 4 kB / 0.5751 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004634/0.6893, allocations: 132.7 kB / 0.5752 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005923/0.6899, allocations: 71.91 kB / 0.5753 GB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003288/0.6932, allocations: 1.867 MB / 0.5771 GB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005933/0.6939, allocations: 47.55 kB / 0.5771 GB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.736e-05/0.6939, allocations: 16 kB / 0.5772 GB, free: 6.234 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = false protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = false 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 () * 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.0002326/0.6942, allocations: 120.8 kB / 0.5773 GB, free: 6.113 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001495/0.6957, allocations: 413.6 kB / 0.5777 GB, free: 5.785 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.927e-05/0.6958, allocations: 47.53 kB / 0.5777 GB, free: 5.738 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.6973, allocations: 405 kB / 0.5781 GB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.6974, allocations: 8 kB / 0.5781 GB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.6974, allocations: 4 kB / 0.5781 GB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.6974, allocations: 3.984 kB / 0.5781 GB, free: 5.418 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.6985, allocations: 0.5772 MB / 0.5787 GB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.004e-06/0.6985, allocations: 8 kB / 0.5787 GB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005249/0.6991, allocations: 51.91 kB / 0.5787 GB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003979/0.6995, allocations: 125.1 kB / 0.5789 GB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.161e-05/0.6995, allocations: 7.984 kB / 0.5789 GB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003029/0.7026, allocations: 1.862 MB / 0.5807 GB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.7026, allocations: 96 / 0.5807 GB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.7046, allocations: 0.6439 MB / 0.5813 GB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000273/0.7049, allocations: 151.8 kB / 0.5815 GB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.692e-05/0.705, allocations: 4 kB / 0.5815 GB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003882/0.7054, allocations: 11.98 kB / 0.5815 GB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.7056, allocations: 38.38 kB / 0.5815 GB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.849e-05/0.7056, allocations: 11.5 kB / 0.5815 GB, free: 2.324 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003404/0.706, allocations: 220.4 kB / 0.5817 GB, free: 2.152 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.706, allocations: 4 kB / 0.5817 GB, free: 2.148 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00096/0.707, allocations: 147.4 kB / 0.5819 GB, free: 2.004 MB / 378.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 () * 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.00256/0.7095, allocations: 1.415 MB / 0.5833 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.7108, allocations: 459 kB / 0.5837 GB, free: 364 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.7108, allocations: 0 / 0.5837 GB, free: 364 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006678/0.7115, allocations: 296.9 kB / 0.584 GB, free: 124 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009067/0.7124, allocations: 114 kB / 0.5841 GB, free: 32 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003056/0.7155, allocations: 1.037 MB / 0.5851 GB, free: 15.06 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000763/0.7163, allocations: 0.9438 MB / 0.586 GB, free: 14.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003744/0.7167, allocations: 198.1 kB / 0.5862 GB, free: 14.07 MB / 394.7 MB Notification: Performance of SimCode: time 3.036e-06/0.7167, allocations: 0 / 0.5862 GB, free: 14.07 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.916/3.632, allocations: 12.35 MB / 0.5983 GB, free: 1.867 MB / 394.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)