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.001337/0.001337, allocations: 78.5 kB / 20.49 MB, free: 1.391 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.001411/0.001411, allocations: 167 kB / 23.74 MB, free: 4.703 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.392/1.392, allocations: 177.2 MB / 204.1 MB, free: 9.289 MB / 190.1 MB " [Timeout remaining time 179] 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.1731/0.1731, allocations: 29.43 MB / 289.9 MB, free: 3.41 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.002115/0.002115, allocations: 63.91 kB / 430.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2882, allocations: 62.45 MB / 492.9 MB, free: 1.957 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008521/0.2967, allocations: 6.237 MB / 499.1 MB, free: 11.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002824/0.2995, allocations: 1.613 MB / 0.489 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002749/0.2998, allocations: 35.69 kB / 0.489 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005252/0.3003, allocations: 150.7 kB / 0.4892 GB, free: 9.891 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009294/0.3012, allocations: 461.8 kB / 0.4896 GB, free: 9.438 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006333/0.3019, allocations: 347.4 kB / 0.49 GB, free: 9.098 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001582/0.3035, allocations: 1.508 MB / 0.4914 GB, free: 7.586 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003857/0.3038, allocations: 246.2 kB / 0.4917 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001211/0.3051, allocations: 0.861 MB / 0.4925 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009518/0.306, allocations: 0.6581 MB / 0.4931 GB, free: 5.816 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.3062, allocations: 100 kB / 0.4932 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001695/0.3063, allocations: 100 kB / 0.4933 GB, free: 5.621 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004535/0.3068, allocations: 431 kB / 0.4937 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004649/0.3072, allocations: 390.5 kB / 0.4941 GB, free: 4.816 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001222/0.3085, allocations: 1.203 MB / 0.4953 GB, free: 3.609 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3085, allocations: 0 / 0.4953 GB, free: 3.609 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3085, allocations: 3.938 kB / 0.4953 GB, free: 3.605 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.3085, allocations: 0 / 0.4953 GB, free: 3.605 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.002771/0.3113, allocations: 1.257 MB / 0.4965 GB, free: 2.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.3113, allocations: 11.98 kB / 0.4965 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.3115, allocations: 100.4 kB / 0.4966 GB, free: 2.195 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/0.313, allocations: 0.6572 MB / 0.4973 GB, free: 1.508 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006506/0.3136, allocations: 0.7522 MB / 0.498 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.3138, allocations: 67.94 kB / 0.4981 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002474/0.3162, allocations: 1.141 MB / 0.4992 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.3163, allocations: 0 / 0.4992 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9e-05/0.3164, allocations: 28 kB / 0.4992 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001509/0.3165, allocations: 37.28 kB / 0.4992 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002772/0.3193, allocations: 1.168 MB / 0.5004 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005609/0.3249, allocations: 3.16 MB / 0.5035 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002727/0.3276, allocations: 0.9176 MB / 0.5044 GB, free: 9.949 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001745/0.3294, allocations: 0.6511 MB / 0.505 GB, free: 9.293 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.353e-05/0.3294, allocations: 8.5 kB / 0.505 GB, free: 9.285 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001682/0.3311, allocations: 0.684 MB / 0.5057 GB, free: 8.582 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.755e-06/0.3311, allocations: 0 / 0.5057 GB, free: 8.582 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.01935/0.3505, allocations: 5.507 MB / 0.5111 GB, free: 3.035 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.862e-05/0.3505, allocations: 93.53 kB / 0.5111 GB, free: 2.922 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005759/0.3511, allocations: 421.8 kB / 0.5115 GB, free: 2.504 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.574e-05/0.3512, allocations: 45.69 kB / 0.5116 GB, free: 2.453 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003147/0.3515, allocations: 328.8 kB / 0.5119 GB, free: 2.129 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000226/0.3517, allocations: 222.1 kB / 0.5121 GB, free: 1.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002687/0.352, allocations: 130.3 kB / 0.5122 GB, free: 1.777 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.3522, allocations: 370.7 kB / 0.5126 GB, free: 1.406 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.3534, allocations: 0.5419 MB / 0.5131 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.3547, allocations: 0.6627 MB / 0.5138 GB, free: 152 kB / 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.007256/0.3619, allocations: 3.068 MB / 0.5168 GB, free: 13.01 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.362, allocations: 0 / 0.5168 GB, free: 13.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00759/0.3695, allocations: 2.518 MB / 0.5192 GB, free: 10.47 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.909e-05/0.3696, allocations: 53.69 kB / 0.5193 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.3696, allocations: 0 / 0.5193 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00257/0.3722, allocations: 1.082 MB / 0.5203 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005299/0.3727, allocations: 115.8 kB / 0.5204 GB, free: 9.211 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01602/0.3888, allocations: 6.651 MB / 0.5269 GB, free: 2.469 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008112/0.3896, allocations: 95.89 kB / 0.527 GB, free: 2.375 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/0.3897, allocations: 39.97 kB / 0.5271 GB, free: 2.336 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.0005272/0.3902, allocations: 275.8 kB / 0.5273 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.3904, allocations: 59.75 kB / 0.5274 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008013/0.3984, allocations: 2.419 MB / 0.5298 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.138e-05/0.3984, allocations: 12 kB / 0.5298 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3984, allocations: 3.938 kB / 0.5298 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.08e-05/0.3984, allocations: 3.984 kB / 0.5298 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01016/0.4086, allocations: 3.294 MB / 0.533 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.4086, allocations: 0 / 0.533 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004187/0.409, allocations: 87.77 kB / 0.5331 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002589/0.4116, allocations: 1.094 MB / 0.5341 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.4117, allocations: 19.98 kB / 0.5342 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01573/0.4275, allocations: 6.621 MB / 0.5406 GB, free: 4.258 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4275, allocations: 0 / 0.5406 GB, free: 4.258 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009362/0.4368, allocations: 3.202 MB / 0.5438 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004746/0.4373, allocations: 139.7 kB / 0.5439 GB, free: 0.875 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.4374, allocations: 31.98 kB / 0.5439 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007469/0.4382, allocations: 99.86 kB / 0.544 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000433/0.4386, allocations: 172.1 kB / 0.5442 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.396e-05/0.4387, allocations: 23.98 kB / 0.5442 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003704/0.4391, allocations: 287.1 kB / 0.5445 GB, free: 280 kB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4391, allocations: 4 kB / 0.5445 GB, free: 276 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.00087/0.4399, allocations: 224 kB / 0.5447 GB, free: 52 kB / 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.0002097/0.4401, allocations: 127.2 kB / 0.5448 GB, free: 15.92 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004533/0.4447, allocations: 1.698 MB / 0.5465 GB, free: 14.19 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4447, allocations: 0 / 0.5465 GB, free: 14.19 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00318/0.4479, allocations: 1.099 MB / 0.5475 GB, free: 13.08 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008155/0.4487, allocations: 137.2 kB / 0.5477 GB, free: 12.95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003352/0.452, allocations: 1.706 MB / 0.5493 GB, free: 11.19 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004948/0.4525, allocations: 403.3 kB / 0.5497 GB, free: 10.77 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004054/0.4529, allocations: 120.9 kB / 0.5498 GB, free: 10.65 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.4531, allocations: 40.5 kB / 0.5499 GB, free: 10.61 MB / 462.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4531, allocations: 0 / 0.5499 GB, free: 10.61 MB / 462.1 MB Notification: Performance of Templates: time 0.02829/0.4814, allocations: 15.57 MB / 0.5651 GB, free: 11.11 MB / 478.1 MB " [Timeout remaining time 660] 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","/var/lib/jenkins/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.325192838907242]