Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001504/0.001505, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.042/2.042, allocations: 194.3 MB / 208.4 MB, free: 6.703 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001847/0.001848, allocations: 118.3 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1889/0.1889, allocations: 37.9 MB / 336.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 6.404e-05/6.407e-05, allocations: 7.984 kB / 397.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3303, allocations: 53.21 MB / 450.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4461/0.7765, allocations: 96.95 MB / 0.535 GB, free: 88.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004705/0.7771, allocations: 97.94 kB / 0.5351 GB, free: 88.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04135/0.8185, allocations: 15.66 MB / 0.5503 GB, free: 78.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.8185, allocations: 3.938 kB / 0.5504 GB, free: 78.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.894e-05/0.8186, allocations: 23.98 kB / 0.5504 GB, free: 78.68 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001929/0.8205, allocations: 1.054 MB / 0.5514 GB, free: 77.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.8206, allocations: 8.031 kB / 0.5514 GB, free: 77.56 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001494/0.8207, allocations: 110.5 kB / 0.5515 GB, free: 77.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.8209, allocations: 83.16 kB / 0.5516 GB, free: 77.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003005/0.8239, allocations: 1.21 MB / 0.5528 GB, free: 76.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003489/0.8243, allocations: 351.5 kB / 0.5531 GB, free: 75.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.8244, allocations: 63.94 kB / 0.5532 GB, free: 75.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.8256, allocations: 0.8966 MB / 0.554 GB, free: 74.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.8257, allocations: 3.938 kB / 0.5541 GB, free: 74.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.402e-05/0.8257, allocations: 20 kB / 0.5541 GB, free: 74.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.8258, allocations: 16 kB / 0.5541 GB, free: 74.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.8269, allocations: 0.8315 MB / 0.5549 GB, free: 73.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004103/0.831, allocations: 3.257 MB / 0.5581 GB, free: 70.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008039/0.8319, allocations: 0.5507 MB / 0.5586 GB, free: 69.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005087/0.8324, allocations: 394.9 kB / 0.559 GB, free: 69.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.626e-05/0.8324, allocations: 8.438 kB / 0.559 GB, free: 69.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005897/0.833, allocations: 485.8 kB / 0.5595 GB, free: 69.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.164e-06/0.833, allocations: 3.938 kB / 0.5595 GB, free: 69.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.001008/0.8341, allocations: 0.6675 MB / 0.5601 GB, free: 68.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.8341, allocations: 148.5 kB / 0.5603 GB, free: 68.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.8344, allocations: 335.1 kB / 0.5606 GB, free: 67.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.252e-05/0.8345, allocations: 41.7 kB / 0.5606 GB, free: 67.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.8347, allocations: 296.3 kB / 0.5609 GB, free: 67.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.8348, allocations: 161.8 kB / 0.5611 GB, free: 67.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.632e-05/0.8348, allocations: 12 kB / 0.5611 GB, free: 67.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.502e-05/0.8349, allocations: 358.8 kB / 0.5614 GB, free: 66.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004094/0.8353, allocations: 333.2 kB / 0.5617 GB, free: 66.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004396/0.8357, allocations: 446.5 kB / 0.5622 GB, free: 66.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004092/0.8362, allocations: 348.8 kB / 0.5625 GB, free: 65.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.8362, allocations: 0 / 0.5625 GB, free: 65.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001024/0.8372, allocations: 0.8473 MB / 0.5633 GB, free: 64.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.779e-05/0.8373, allocations: 53.69 kB / 0.5634 GB, free: 64.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.8373, allocations: 4 kB / 0.5634 GB, free: 64.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.8373, allocations: 4 kB / 0.5634 GB, free: 64.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00582/0.8431, allocations: 1.589 MB / 0.5649 GB, free: 63.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004533/0.8477, allocations: 4.083 MB / 0.5689 GB, free: 58.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000881/0.8486, allocations: 139.4 kB / 0.569 GB, free: 58.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.8487, allocations: 43.97 kB / 0.5691 GB, free: 58.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002256/0.849, allocations: 146.3 kB / 0.5692 GB, free: 58.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.235e-05/0.8491, allocations: 51.44 kB / 0.5693 GB, free: 58.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.8502, allocations: 0.7116 MB / 0.57 GB, free: 57.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.8503, allocations: 8 kB / 0.57 GB, free: 57.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.8503, allocations: 3.938 kB / 0.57 GB, free: 57.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.8503, allocations: 3.984 kB / 0.57 GB, free: 57.83 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.8525, allocations: 1.869 MB / 0.5718 GB, free: 55.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.084e-06/0.8525, allocations: 7.984 kB / 0.5718 GB, free: 55.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007071/0.8595, allocations: 1.834 MB / 0.5736 GB, free: 54.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.582e-05/0.8596, allocations: 4 kB / 0.5736 GB, free: 54.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.464e-05/0.8597, allocations: 11.98 kB / 0.5736 GB, free: 54.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.271e-06/0.8597, allocations: 4 kB / 0.5736 GB, free: 54.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.8597, allocations: 7.938 kB / 0.5736 GB, free: 54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.8613, allocations: 1.36 MB / 0.575 GB, free: 52.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000309/0.8616, allocations: 200.5 kB / 0.5752 GB, free: 52.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.8618, allocations: 27.98 kB / 0.5752 GB, free: 52.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007491/0.8625, allocations: 127.8 kB / 0.5753 GB, free: 52.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.8627, allocations: 95.8 kB / 0.5754 GB, free: 52.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-05/0.8628, allocations: 19.98 kB / 0.5754 GB, free: 52.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002902/0.8631, allocations: 261.2 kB / 0.5757 GB, free: 51.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8631, allocations: 4 kB / 0.5757 GB, free: 51.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006693/0.8638, allocations: 183.5 kB / 0.5758 GB, free: 51.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001909/0.8657, allocations: 2.43 MB / 0.5782 GB, free: 49.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005685/0.8714, allocations: 2.078 MB / 0.5802 GB, free: 47.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.8714, allocations: 0 / 0.5802 GB, free: 47.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003513/0.8749, allocations: 0.9957 MB / 0.5812 GB, free: 46.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009166/0.8759, allocations: 122 kB / 0.5813 GB, free: 45.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003922/0.8798, allocations: 1.449 MB / 0.5828 GB, free: 44.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/0.8802, allocations: 0.9411 MB / 0.5837 GB, free: 43.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005349/0.8807, allocations: 156.6 kB / 0.5838 GB, free: 43.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003007/0.881, allocations: 199.4 kB / 0.584 GB, free: 43.11 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/0.881, allocations: 0 / 0.584 GB, free: 43.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02696/0.908, allocations: 12.81 MB / 0.5965 GB, free: 30.3 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.9083, allocations: 186.4 kB / 0.5967 GB, free: 30.08 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.454/3.362, allocations: 0 / 0.5967 GB, free: 30.08 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)