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.00082/0.00082, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003633/0.003633, allocations: 159.5 kB / 24.69 MB, free: 9.426 MB / 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 0.8412/0.8412, allocations: 177.2 MB / 205 MB, free: 5.742 MB / 186.7 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.2127/0.2127, allocations: 29.41 MB / 290.9 MB, free: 2.434 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 431.5 MB, free: 13.11 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.674e-05/2.837e-05, allocations: 2.281 kB / 431.5 MB, free: 13.11 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005507/0.005535, allocations: 6.215 MB / 437.7 MB, free: 6.863 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002394/0.00793, allocations: 1.621 MB / 439.3 MB, free: 5.238 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003078/0.008237, allocations: 35.69 kB / 439.3 MB, free: 5.203 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004492/0.008687, allocations: 162.7 kB / 439.5 MB, free: 5.043 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007203/0.009407, allocations: 465.3 kB / 440 MB, free: 4.586 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005231/0.00993, allocations: 367.3 kB / 440.3 MB, free: 4.227 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001024/0.01095, allocations: 1.519 MB / 441.8 MB, free: 2.703 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002905/0.01124, allocations: 246.2 kB / 442.1 MB, free: 2.453 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000756/0.012, allocations: 0.8104 MB / 442.9 MB, free: 1.641 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006368/0.01264, allocations: 0.6352 MB / 443.5 MB, free: 1.004 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.832e-05/0.01274, allocations: 100 kB / 443.6 MB, free: 0.9062 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001092/0.01285, allocations: 96 kB / 443.7 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002985/0.01314, allocations: 442.8 kB / 444.1 MB, free: 388 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00025/0.01339, allocations: 339.3 kB / 444.5 MB, free: 48 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1538/0.1671, allocations: 1.227 MB / 445.7 MB, free: 45.65 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1672, allocations: 0 / 445.7 MB, free: 45.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1672, allocations: 0 / 445.7 MB, free: 45.65 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.1672, allocations: 0 / 445.7 MB, free: 45.65 MB / 410.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.001568/0.1687, allocations: 1.257 MB / 447 MB, free: 45.06 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.1688, allocations: 10.45 kB / 447 MB, free: 45.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.1689, allocations: 106.6 kB / 447.1 MB, free: 45.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007762/0.1697, allocations: 0.653 MB / 447.7 MB, free: 44.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002382/0.1699, allocations: 0.7483 MB / 448.5 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.413e-05/0.17, allocations: 69.23 kB / 448.5 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.1712, allocations: 1.141 MB / 449.7 MB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.1712, allocations: 5.719 kB / 449.7 MB, free: 43.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.902e-05/0.1712, allocations: 25.28 kB / 449.7 MB, free: 43.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-05/0.1713, allocations: 38 kB / 449.8 MB, free: 43.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001363/0.1727, allocations: 1.176 MB / 450.9 MB, free: 43.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002744/0.1754, allocations: 3.14 MB / 454.1 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.1767, allocations: 0.9128 MB / 455 MB, free: 42.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008377/0.1775, allocations: 0.6541 MB / 455.6 MB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.035e-05/0.1776, allocations: 7.031 kB / 455.6 MB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008062/0.1784, allocations: 0.6808 MB / 456.3 MB, free: 41.97 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 3.737e-06/0.1784, allocations: 0 / 456.3 MB, free: 41.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=61): time 0.009428/0.1878, allocations: 5.516 MB / 461.8 MB, free: 40.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.1878, allocations: 92.95 kB / 461.9 MB, free: 40.65 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.1882, allocations: 424.2 kB / 462.3 MB, free: 40.45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.236e-05/0.1882, allocations: 44.42 kB / 462.4 MB, free: 40.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.1883, allocations: 332.8 kB / 462.7 MB, free: 40.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.225e-05/0.1884, allocations: 214.7 kB / 462.9 MB, free: 39.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.1886, allocations: 125.1 kB / 463 MB, free: 39.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.438e-05/0.1886, allocations: 372.6 kB / 463.4 MB, free: 39.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005801/0.1892, allocations: 0.535 MB / 463.9 MB, free: 39.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000596/0.1898, allocations: 0.6637 MB / 464.6 MB, free: 39.09 MB / 410.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.003476/0.1933, allocations: 3.073 MB / 467.7 MB, free: 38.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1933, allocations: 3.219 kB / 467.7 MB, free: 38.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003641/0.1969, allocations: 2.518 MB / 470.2 MB, free: 37.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.761e-05/0.197, allocations: 53.06 kB / 470.3 MB, free: 37.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.197, allocations: 3.125 kB / 470.3 MB, free: 37.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/0.1982, allocations: 1.079 MB / 471.3 MB, free: 37.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002605/0.1985, allocations: 114.3 kB / 471.4 MB, free: 37.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008128/0.2066, allocations: 6.648 MB / 478.1 MB, free: 34.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005325/0.2072, allocations: 86.19 kB / 478.2 MB, free: 34.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.175e-05/0.2072, allocations: 44.14 kB / 478.2 MB, free: 34.44 MB / 410.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.000355/0.2076, allocations: 283.6 kB / 478.5 MB, free: 34.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.45e-05/0.2076, allocations: 57.72 kB / 478.6 MB, free: 34.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004303/0.2119, allocations: 2.418 MB / 481 MB, free: 33.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.2119, allocations: 7.156 kB / 481 MB, free: 33.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2119, allocations: 1.859 kB / 481 MB, free: 33.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.212, allocations: 3.281 kB / 481 MB, free: 33.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005301/0.2173, allocations: 3.288 MB / 484.3 MB, free: 32.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.2173, allocations: 1.406 kB / 484.3 MB, free: 32.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.2175, allocations: 80.08 kB / 484.4 MB, free: 32.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001463/0.219, allocations: 1.091 MB / 485.4 MB, free: 32.54 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.838e-05/0.219, allocations: 22.47 kB / 485.5 MB, free: 32.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008694/0.2277, allocations: 6.636 MB / 492.1 MB, free: 29.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.2277, allocations: 6.031 kB / 492.1 MB, free: 29.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004959/0.2327, allocations: 3.188 MB / 495.3 MB, free: 28.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002719/0.233, allocations: 143 kB / 495.4 MB, free: 28.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.857e-05/0.233, allocations: 32.34 kB / 495.5 MB, free: 28.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003441/0.2334, allocations: 96.72 kB / 495.6 MB, free: 28.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002559/0.2336, allocations: 174.6 kB / 495.7 MB, free: 28.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.691e-05/0.2337, allocations: 24.41 kB / 495.8 MB, free: 28.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002303/0.2339, allocations: 281.8 kB / 496 MB, free: 28.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2339, allocations: 1.312 kB / 496 MB, free: 28.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006307/0.2345, allocations: 229 kB / 496.3 MB, free: 28.59 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.0001531/0.2347, allocations: 124.9 kB / 496.4 MB, free: 28.49 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002382/0.2371, allocations: 1.703 MB / 498.1 MB, free: 27.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2371, allocations: 0 / 498.1 MB, free: 27.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001583/0.2386, allocations: 1.092 MB / 499.2 MB, free: 27.03 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005268/0.2392, allocations: 150.7 kB / 499.3 MB, free: 26.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.241, allocations: 1.669 MB / 0.4892 GB, free: 25.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.2412, allocations: 401.8 kB / 0.4896 GB, free: 25.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.675e-05/0.2413, allocations: 47.11 kB / 0.4897 GB, free: 25.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.152e-06/0.2413, allocations: 3.938 kB / 0.4897 GB, free: 25.66 MB / 410.7 MB Notification: Performance of Templates: time 0.009333/0.2507, allocations: 13.49 MB / 0.5028 GB, free: 13.95 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.865263658575714]