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.001412/0.001412, allocations: 92.31 kB / 20.96 MB, free: 3.465 MB / 18.57 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.001539/0.001539, allocations: 157.7 kB / 24.27 MB, free: 164 kB / 18.57 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.511/1.511, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 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.3585/0.3585, allocations: 29.42 MB / 290.5 MB, free: 2.434 MB / 266.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 368.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.714e-05/2.9e-05, allocations: 2.312 kB / 368.9 MB, free: 11.33 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.01048/0.01051, allocations: 6.247 MB / 375.1 MB, free: 5.047 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004065/0.01458, allocations: 1.598 MB / 376.7 MB, free: 3.445 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007075/0.01529, allocations: 43.62 kB / 376.8 MB, free: 3.402 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008079/0.01609, allocations: 154.7 kB / 376.9 MB, free: 3.25 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001706/0.0178, allocations: 473.3 kB / 377.4 MB, free: 2.785 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.01892, allocations: 355.3 kB / 377.7 MB, free: 2.438 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002507/0.02143, allocations: 1.519 MB / 379.2 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005894/0.02202, allocations: 246.2 kB / 379.5 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002444/0.02446, allocations: 0.8143 MB / 380.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001486/0.02595, allocations: 0.6313 MB / 380.9 MB, free: 15.23 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003488/0.0263, allocations: 99.94 kB / 381 MB, free: 15.13 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003851/0.02668, allocations: 104 kB / 381.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007026/0.02738, allocations: 438.9 kB / 381.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008007/0.02818, allocations: 339.3 kB / 381.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001845/0.03003, allocations: 1.239 MB / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.03004, allocations: 0 / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.03004, allocations: 0 / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.03005, allocations: 0 / 383.1 MB, free: 13.02 MB / 362.7 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.003133/0.03319, allocations: 1.237 MB / 384.4 MB, free: 11.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.03324, allocations: 15.98 kB / 384.4 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003447/0.03358, allocations: 164.4 kB / 384.5 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001595/0.03518, allocations: 0.6993 MB / 385.2 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008049/0.03598, allocations: 0.7486 MB / 386 MB, free: 9.938 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001608/0.03614, allocations: 68.36 kB / 386.1 MB, free: 9.871 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002673/0.03882, allocations: 1.141 MB / 387.2 MB, free: 8.691 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.03883, allocations: 0 / 387.2 MB, free: 8.691 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.399e-05/0.03893, allocations: 27.98 kB / 387.2 MB, free: 8.664 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001381/0.03907, allocations: 37.3 kB / 387.3 MB, free: 8.629 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003002/0.04207, allocations: 1.172 MB / 388.4 MB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005835/0.0479, allocations: 3.167 MB / 391.6 MB, free: 4.207 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002701/0.0506, allocations: 0.9137 MB / 392.5 MB, free: 3.277 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001845/0.05245, allocations: 0.6511 MB / 393.2 MB, free: 2.621 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.404e-05/0.0525, allocations: 8.5 kB / 393.2 MB, free: 2.609 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001718/0.05422, allocations: 0.6878 MB / 393.9 MB, free: 1.902 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 1.893e-06/0.05422, allocations: 0 / 393.9 MB, free: 1.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.02064/0.07486, allocations: 5.534 MB / 399.4 MB, free: 12.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.856e-05/0.07495, allocations: 89.61 kB / 399.5 MB, free: 12.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006181/0.07557, allocations: 421.8 kB / 399.9 MB, free: 11.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.07567, allocations: 41.7 kB / 399.9 MB, free: 11.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003586/0.07603, allocations: 328.8 kB / 400.3 MB, free: 11.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002371/0.07627, allocations: 214.2 kB / 400.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002634/0.07653, allocations: 134.3 kB / 400.6 MB, free: 11.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002318/0.07676, allocations: 374.7 kB / 401 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.07812, allocations: 0.5341 MB / 401.5 MB, free: 10.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.07944, allocations: 0.6626 MB / 402.2 MB, free: 9.453 MB / 378.7 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.007485/0.08692, allocations: 3.079 MB / 405.2 MB, free: 6.309 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.08693, allocations: 4 kB / 405.2 MB, free: 6.305 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007853/0.09478, allocations: 2.538 MB / 407.8 MB, free: 3.742 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.228e-05/0.09487, allocations: 49.69 kB / 407.8 MB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.09489, allocations: 7.984 kB / 407.8 MB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006296/0.1012, allocations: 2.068 MB / 409.9 MB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005497/0.1017, allocations: 111.8 kB / 410 MB, free: 1.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01707/0.1188, allocations: 6.678 MB / 416.7 MB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008387/0.1196, allocations: 79.95 kB / 416.8 MB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-05/0.1197, allocations: 43.98 kB / 416.8 MB, free: 10.61 MB / 394.7 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.0005539/0.1203, allocations: 283.5 kB / 417.1 MB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.1205, allocations: 75.62 kB / 417.2 MB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008189/0.1287, allocations: 2.419 MB / 419.6 MB, free: 7.809 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.732e-05/0.1287, allocations: 8 kB / 419.6 MB, free: 7.801 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.1287, allocations: 4 kB / 419.6 MB, free: 7.797 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.1287, allocations: 3.984 kB / 419.6 MB, free: 7.793 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.1388, allocations: 3.282 MB / 422.9 MB, free: 4.453 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.1388, allocations: 4.156 kB / 422.9 MB, free: 4.449 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000588/0.1394, allocations: 79.89 kB / 423 MB, free: 4.371 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006447/0.1458, allocations: 2.08 MB / 425 MB, free: 2.285 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/0.1459, allocations: 19.98 kB / 425.1 MB, free: 2.266 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01739/0.1633, allocations: 6.646 MB / 431.7 MB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1633, allocations: 0 / 431.7 MB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01022/0.1735, allocations: 3.211 MB / 434.9 MB, free: 8.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004597/0.174, allocations: 143.7 kB / 435.1 MB, free: 8.129 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.1741, allocations: 35.98 kB / 435.1 MB, free: 8.094 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000726/0.1749, allocations: 99.86 kB / 435.2 MB, free: 7.996 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004523/0.1753, allocations: 172.1 kB / 435.4 MB, free: 7.828 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.615e-05/0.1754, allocations: 19.98 kB / 435.4 MB, free: 7.809 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004255/0.1758, allocations: 291.1 kB / 435.7 MB, free: 7.523 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1758, allocations: 0 / 435.7 MB, free: 7.523 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009182/0.1767, allocations: 224 kB / 435.9 MB, free: 7.305 MB / 410.7 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.0002217/0.1769, allocations: 130.3 kB / 436 MB, free: 7.168 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005034/0.182, allocations: 1.706 MB / 437.7 MB, free: 5.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.182, allocations: 0 / 437.7 MB, free: 5.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003425/0.1854, allocations: 1.083 MB / 438.8 MB, free: 4.332 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009693/0.1864, allocations: 172.3 kB / 439 MB, free: 4.164 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003584/0.19, allocations: 1.638 MB / 440.6 MB, free: 2.484 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005215/0.1905, allocations: 395.3 kB / 441 MB, free: 2.074 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003627/0.1908, allocations: 116.9 kB / 441.1 MB, free: 1.961 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.191, allocations: 48.5 kB / 441.2 MB, free: 1.91 MB / 410.7 MB Notification: Performance of SimCode: time 1.292e-06/0.191, allocations: 0 / 441.2 MB, free: 1.91 MB / 410.7 MB Notification: Performance of Templates: time 0.1675/0.3585, allocations: 15.52 MB / 456.7 MB, free: 109.9 MB / 410.7 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.667064227978699]