Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 216.8 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.514/1.514, allocations: 230.6 MB / 258.3 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1929/0.1929, allocations: 38.55 MB / 353.3 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 71.89 kB / 493.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3092, allocations: 62.47 MB / 0.5427 GB, free: 128 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.00889/0.3181, allocations: 6.253 MB / 0.5488 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003495/0.3216, allocations: 1.605 MB / 0.5504 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000667/0.3222, allocations: 40.28 kB / 0.5504 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006821/0.3229, allocations: 150.3 kB / 0.5506 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.3242, allocations: 449.6 kB / 0.551 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000904/0.3251, allocations: 347.3 kB / 0.5513 GB, free: 9.328 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001841/0.327, allocations: 1.52 MB / 0.5528 GB, free: 8.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004252/0.3274, allocations: 254.4 kB / 0.553 GB, free: 8.289 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001445/0.3288, allocations: 0.6398 MB / 0.5537 GB, free: 7.918 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001408/0.3302, allocations: 0.6878 MB / 0.5543 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001932/0.3304, allocations: 97.72 kB / 0.5544 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002571/0.3307, allocations: 98.53 kB / 0.5545 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005075/0.3312, allocations: 432.9 kB / 0.5549 GB, free: 7.223 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005436/0.3317, allocations: 391.9 kB / 0.5553 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.3332, allocations: 1.199 MB / 0.5565 GB, free: 6.004 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3332, allocations: 0 / 0.5565 GB, free: 6.004 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3333, allocations: 4 kB / 0.5565 GB, free: 6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.3333, allocations: 0 / 0.5565 GB, free: 6 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.003276/0.3365, allocations: 1.257 MB / 0.5577 GB, free: 4.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.3366, allocations: 15.97 kB / 0.5577 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.635e-05/0.3366, allocations: 21.44 kB / 0.5578 GB, free: 4.66 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001756/0.3368, allocations: 114.7 kB / 0.5579 GB, free: 4.539 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.337, allocations: 104.4 kB / 0.558 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001569/0.3386, allocations: 0.6686 MB / 0.5586 GB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007115/0.3393, allocations: 0.7403 MB / 0.5593 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/0.3395, allocations: 68 kB / 0.5594 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002542/0.342, allocations: 1.141 MB / 0.5605 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.342, allocations: 3.938 kB / 0.5605 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.868e-05/0.3421, allocations: 28 kB / 0.5606 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001256/0.3422, allocations: 37.28 kB / 0.5606 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002926/0.3452, allocations: 1.176 MB / 0.5617 GB, free: 368 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005956/0.3511, allocations: 3.258 MB / 0.5649 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/0.3537, allocations: 0.9098 MB / 0.5658 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001703/0.3554, allocations: 0.6501 MB / 0.5664 GB, free: 11.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.223e-05/0.3554, allocations: 12.5 kB / 0.5665 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001629/0.3571, allocations: 0.6801 MB / 0.5671 GB, free: 10.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.394e-06/0.3571, allocations: 0 / 0.5671 GB, free: 10.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.02001/0.3771, allocations: 5.51 MB / 0.5725 GB, free: 5.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.933e-05/0.3772, allocations: 97.53 kB / 0.5726 GB, free: 5.047 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006988/0.3779, allocations: 469.9 kB / 0.573 GB, free: 4.578 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000146/0.378, allocations: 41.7 kB / 0.5731 GB, free: 4.531 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003423/0.3784, allocations: 328.8 kB / 0.5734 GB, free: 4.203 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002653/0.3786, allocations: 214.2 kB / 0.5736 GB, free: 3.992 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002846/0.3789, allocations: 130.3 kB / 0.5737 GB, free: 3.859 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.3791, allocations: 374.8 kB / 0.5741 GB, free: 3.484 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/0.3803, allocations: 0.5341 MB / 0.5746 GB, free: 2.945 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.3816, allocations: 0.6626 MB / 0.5752 GB, free: 2.234 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007635/0.3893, allocations: 3.079 MB / 0.5783 GB, free: 15.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.3893, allocations: 4 kB / 0.5783 GB, free: 15.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007724/0.397, allocations: 2.518 MB / 0.5807 GB, free: 12.54 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.871e-05/0.3971, allocations: 49.67 kB / 0.5808 GB, free: 12.49 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.3971, allocations: 4 kB / 0.5808 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00259/0.3997, allocations: 1.086 MB / 0.5818 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005928/0.4003, allocations: 111.8 kB / 0.5819 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01661/0.4169, allocations: 6.69 MB / 0.5885 GB, free: 4.477 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008666/0.4177, allocations: 87.95 kB / 0.5886 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.4178, allocations: 39.97 kB / 0.5886 GB, free: 4.352 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * 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 {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005908/0.4184, allocations: 279.5 kB / 0.5889 GB, free: 4.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.4186, allocations: 59.62 kB / 0.5889 GB, free: 4.012 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008037/0.4266, allocations: 2.423 MB / 0.5913 GB, free: 1.582 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.085e-05/0.4266, allocations: 8 kB / 0.5913 GB, free: 1.574 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4266, allocations: 0 / 0.5913 GB, free: 1.574 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.4266, allocations: 0 / 0.5913 GB, free: 1.574 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.4369, allocations: 3.386 MB / 0.5946 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.549e-05/0.4369, allocations: 7.938 kB / 0.5946 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004471/0.4374, allocations: 75.89 kB / 0.5947 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002624/0.44, allocations: 1.09 MB / 0.5957 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.4401, allocations: 19.98 kB / 0.5958 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01641/0.4565, allocations: 6.663 MB / 0.6023 GB, free: 6.137 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.4565, allocations: 4 kB / 0.6023 GB, free: 6.133 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009779/0.4663, allocations: 3.191 MB / 0.6054 GB, free: 2.906 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005086/0.4668, allocations: 147.6 kB / 0.6055 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.467, allocations: 31.98 kB / 0.6056 GB, free: 2.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007581/0.4677, allocations: 99.86 kB / 0.6057 GB, free: 2.633 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004682/0.4682, allocations: 168.1 kB / 0.6058 GB, free: 2.469 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.379e-05/0.4682, allocations: 23.98 kB / 0.6058 GB, free: 2.445 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004561/0.4687, allocations: 330.8 kB / 0.6061 GB, free: 2.125 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4687, allocations: 0 / 0.6061 GB, free: 2.125 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000969/0.4697, allocations: 231.9 kB / 0.6064 GB, free: 1.898 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * 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]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01015/0.4798, allocations: 3.769 MB / 0.6101 GB, free: 14.07 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004933/0.4848, allocations: 1.706 MB / 0.6117 GB, free: 12.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.4848, allocations: 4 kB / 0.6117 GB, free: 12.33 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003315/0.4881, allocations: 1.075 MB / 0.6128 GB, free: 11.24 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009978/0.4891, allocations: 152 kB / 0.6129 GB, free: 11.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02384/0.5129, allocations: 10.01 MB / 0.6227 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005516/0.5135, allocations: 403.4 kB / 0.6231 GB, free: 420 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000489/0.514, allocations: 121.1 kB / 0.6232 GB, free: 300 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003555/0.5143, allocations: 239.4 kB / 0.6234 GB, free: 60 kB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5143, allocations: 0 / 0.6234 GB, free: 60 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08084/0.5951, allocations: 22.91 MB / 0.6458 GB, free: 9.383 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.15/14.75, allocations: 6.875 kB / 0.6458 GB, free: 9.379 MB / 494.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.75646043603774] Failed to read output from testmodel.py, exit status != 0: 14.934828465920873 14.959517342 14.621583524 Calling exit ...