Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.002052/0.002052, allocations: 73.88 kB / 21.24 MB, free: 0.5547 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.001503/0.001503, allocations: 160.1 kB / 24.5 MB, free: 3.715 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.572/1.572, allocations: 177.2 MB / 204.9 MB, free: 8.996 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1755/0.1755, allocations: 29.43 MB / 290.7 MB, free: 3.273 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") [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.002105/0.002105, allocations: 63.91 kB / 431.2 MB, free: 3.215 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3648, allocations: 62.44 MB / 493.6 MB, free: 37.8 MB / 446.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.006914/0.3717, allocations: 6.259 MB / 499.9 MB, free: 33.62 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002955/0.3747, allocations: 1.619 MB / 0.4898 GB, free: 32.53 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004515/0.3751, allocations: 42.16 kB / 0.4898 GB, free: 32.51 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005568/0.3757, allocations: 154.2 kB / 0.4899 GB, free: 32.43 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001007/0.3767, allocations: 458.9 kB / 0.4904 GB, free: 32.16 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007368/0.3774, allocations: 341.3 kB / 0.4907 GB, free: 31.99 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001329/0.3787, allocations: 1.508 MB / 0.4922 GB, free: 31.33 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003507/0.3791, allocations: 250.4 kB / 0.4924 GB, free: 31.22 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001087/0.3802, allocations: 0.6394 MB / 0.493 GB, free: 30.95 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009922/0.3812, allocations: 0.6602 MB / 0.4937 GB, free: 30.74 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000167/0.3813, allocations: 102.1 kB / 0.4938 GB, free: 30.73 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002159/0.3816, allocations: 97.84 kB / 0.4939 GB, free: 30.73 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003484/0.3819, allocations: 428.9 kB / 0.4943 GB, free: 30.56 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004078/0.3823, allocations: 393.1 kB / 0.4947 GB, free: 30.36 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.3833, allocations: 1.193 MB / 0.4958 GB, free: 29.92 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3833, allocations: 3.375 kB / 0.4958 GB, free: 29.92 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3833, allocations: 0 / 0.4958 GB, free: 29.92 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.3833, allocations: 3.156 kB / 0.4958 GB, free: 29.92 MB / 446.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.002627/0.386, allocations: 1.252 MB / 0.4971 GB, free: 29.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.386, allocations: 15.98 kB / 0.4971 GB, free: 29.17 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001722/0.3862, allocations: 101.8 kB / 0.4972 GB, free: 29.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001303/0.3875, allocations: 0.6668 MB / 0.4978 GB, free: 28.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004426/0.3879, allocations: 0.7501 MB / 0.4986 GB, free: 27.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.388, allocations: 63.28 kB / 0.4986 GB, free: 27.95 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002071/0.3901, allocations: 1.144 MB / 0.4997 GB, free: 27.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.3901, allocations: 0 / 0.4997 GB, free: 27.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.622e-05/0.3902, allocations: 26.72 kB / 0.4998 GB, free: 27.48 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001244/0.3903, allocations: 40.08 kB / 0.4998 GB, free: 27.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002497/0.3928, allocations: 1.175 MB / 0.5009 GB, free: 27.13 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004571/0.3974, allocations: 3.152 MB / 0.504 GB, free: 25.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002329/0.3997, allocations: 0.9194 MB / 0.5049 GB, free: 24.93 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001603/0.4013, allocations: 0.6497 MB / 0.5056 GB, free: 24.74 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.118e-05/0.4014, allocations: 10.66 kB / 0.5056 GB, free: 24.74 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001488/0.4029, allocations: 0.6833 MB / 0.5062 GB, free: 24.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=59): time 2.836e-06/0.4029, allocations: 0 / 0.5062 GB, free: 24.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=61): time 0.01968/0.4226, allocations: 5.51 MB / 0.5116 GB, free: 23.26 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.884e-05/0.4226, allocations: 92.95 kB / 0.5117 GB, free: 23.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006224/0.4233, allocations: 422.8 kB / 0.5121 GB, free: 22.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.4234, allocations: 41.11 kB / 0.5121 GB, free: 22.92 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.4236, allocations: 332.2 kB / 0.5125 GB, free: 22.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.4238, allocations: 220.2 kB / 0.5127 GB, free: 22.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002393/0.4241, allocations: 125.9 kB / 0.5128 GB, free: 22.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.4242, allocations: 371.5 kB / 0.5131 GB, free: 22.09 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.4253, allocations: 0.5375 MB / 0.5137 GB, free: 21.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.4266, allocations: 0.6629 MB / 0.5143 GB, free: 21.58 MB / 446.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.007358/0.4339, allocations: 3.079 MB / 0.5173 GB, free: 20.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.4339, allocations: 1.125 kB / 0.5173 GB, free: 20.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008348/0.4423, allocations: 2.515 MB / 0.5198 GB, free: 19.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.143e-05/0.4423, allocations: 49.2 kB / 0.5198 GB, free: 19.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.4424, allocations: 3.688 kB / 0.5198 GB, free: 19.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0027/0.4451, allocations: 1.079 MB / 0.5209 GB, free: 19.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005982/0.4457, allocations: 109 kB / 0.521 GB, free: 19.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01698/0.4626, allocations: 6.65 MB / 0.5275 GB, free: 16.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000923/0.4636, allocations: 88.67 kB / 0.5276 GB, free: 16.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.4637, allocations: 47.98 kB / 0.5276 GB, free: 16.84 MB / 446.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.0005237/0.4642, allocations: 273.3 kB / 0.5279 GB, free: 16.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.4643, allocations: 70.58 kB / 0.5279 GB, free: 16.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008579/0.4729, allocations: 2.416 MB / 0.5303 GB, free: 16.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.4729, allocations: 10.62 kB / 0.5303 GB, free: 16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4729, allocations: 3.938 kB / 0.5303 GB, free: 16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.4729, allocations: 3.984 kB / 0.5303 GB, free: 16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009921/0.4828, allocations: 3.297 MB / 0.5335 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.4828, allocations: 1.062 kB / 0.5335 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003798/0.4832, allocations: 74.64 kB / 0.5336 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00246/0.4857, allocations: 1.093 MB / 0.5347 GB, free: 13.72 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.457e-05/0.4858, allocations: 18.7 kB / 0.5347 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01467/0.5004, allocations: 6.631 MB / 0.5412 GB, free: 8.395 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.5004, allocations: 0 / 0.5412 GB, free: 8.395 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01129/0.5117, allocations: 3.203 MB / 0.5443 GB, free: 5.148 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000514/0.5122, allocations: 147.6 kB / 0.5444 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001681/0.5124, allocations: 31.98 kB / 0.5445 GB, free: 4.973 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/0.5135, allocations: 95.88 kB / 0.5446 GB, free: 4.879 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005685/0.5141, allocations: 168.2 kB / 0.5447 GB, free: 4.715 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.796e-05/0.5142, allocations: 23.98 kB / 0.5447 GB, free: 4.691 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003989/0.5146, allocations: 291.1 kB / 0.545 GB, free: 4.406 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5146, allocations: 0 / 0.545 GB, free: 4.406 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001422/0.516, allocations: 224 kB / 0.5452 GB, free: 4.188 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.0001756/0.5162, allocations: 135.8 kB / 0.5454 GB, free: 4.047 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004315/0.5205, allocations: 1.702 MB / 0.547 GB, free: 2.316 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.5205, allocations: 0 / 0.547 GB, free: 2.316 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002979/0.5235, allocations: 1.083 MB / 0.5481 GB, free: 1.223 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008922/0.5244, allocations: 148.9 kB / 0.5482 GB, free: 1.078 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.5274, allocations: 1.702 MB / 0.5499 GB, free: 15.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005299/0.5279, allocations: 403.3 kB / 0.5503 GB, free: 14.91 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003806/0.5283, allocations: 116.9 kB / 0.5504 GB, free: 14.79 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.5284, allocations: 44.5 kB / 0.5504 GB, free: 14.75 MB / 462.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5284, allocations: 0 / 0.5504 GB, free: 14.75 MB / 462.1 MB Notification: Performance of Templates: time 0.02847/0.5569, allocations: 15.57 MB / 0.5656 GB, free: 15.25 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.92164607194718]