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.001659/0.001659, allocations: 107.6 kB / 21.19 MB, free: 0.668 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.002372/0.002372, allocations: 207.5 kB / 24.48 MB, free: 3.977 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.502/1.502, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.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.1887/0.1887, allocations: 38.56 MB / 353.2 MB, free: 12.3 MB / 286.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.002118/0.002118, allocations: 75.89 kB / 493.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2911, allocations: 62.45 MB / 0.5432 GB, free: 412 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008217/0.2993, allocations: 6.267 MB / 0.5493 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003222/0.3025, allocations: 1.616 MB / 0.5509 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004018/0.3029, allocations: 36.28 kB / 0.5509 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004494/0.3034, allocations: 151.5 kB / 0.551 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001014/0.3044, allocations: 457.2 kB / 0.5515 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007422/0.3051, allocations: 348.5 kB / 0.5518 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001685/0.3068, allocations: 1.508 MB / 0.5533 GB, free: 8.719 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003688/0.3072, allocations: 246.2 kB / 0.5535 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.3082, allocations: 0.6438 MB / 0.5541 GB, free: 8.199 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00105/0.3093, allocations: 0.6595 MB / 0.5548 GB, free: 7.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.3095, allocations: 99.69 kB / 0.5549 GB, free: 7.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002271/0.3097, allocations: 97.59 kB / 0.555 GB, free: 7.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004391/0.3101, allocations: 428.8 kB / 0.5554 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004746/0.3106, allocations: 396 kB / 0.5558 GB, free: 7.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001292/0.3119, allocations: 1.199 MB / 0.5569 GB, free: 6.059 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.3119, allocations: 0 / 0.5569 GB, free: 6.059 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3119, allocations: 0 / 0.5569 GB, free: 6.059 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.3119, allocations: 0 / 0.5569 GB, free: 6.059 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.002692/0.3146, allocations: 1.26 MB / 0.5582 GB, free: 4.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.3146, allocations: 11.98 kB / 0.5582 GB, free: 4.742 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001846/0.3148, allocations: 100.4 kB / 0.5583 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001596/0.3164, allocations: 0.6572 MB / 0.5589 GB, free: 3.957 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006747/0.3171, allocations: 0.7522 MB / 0.5596 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.3172, allocations: 67.98 kB / 0.5597 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002406/0.3196, allocations: 1.141 MB / 0.5608 GB, free: 1.812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.3197, allocations: 0 / 0.5608 GB, free: 1.812 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.86e-05/0.3197, allocations: 27.94 kB / 0.5608 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001189/0.3199, allocations: 41.28 kB / 0.5609 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002828/0.3227, allocations: 1.172 MB / 0.562 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005626/0.3283, allocations: 3.153 MB / 0.5651 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002567/0.3309, allocations: 0.9214 MB / 0.566 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001766/0.3326, allocations: 0.6616 MB / 0.5667 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.938e-05/0.3327, allocations: 4.5 kB / 0.5667 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001612/0.3343, allocations: 0.684 MB / 0.5673 GB, free: 11.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.414e-06/0.3343, allocations: 0 / 0.5673 GB, free: 11.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.02038/0.3547, allocations: 5.503 MB / 0.5727 GB, free: 5.473 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.481e-05/0.3547, allocations: 85.61 kB / 0.5728 GB, free: 5.371 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005256/0.3553, allocations: 425.8 kB / 0.5732 GB, free: 4.949 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.3554, allocations: 41.7 kB / 0.5732 GB, free: 4.902 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002799/0.3557, allocations: 340.6 kB / 0.5736 GB, free: 4.566 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.3559, allocations: 214.2 kB / 0.5738 GB, free: 4.355 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000244/0.3561, allocations: 130.3 kB / 0.5739 GB, free: 4.223 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3563, allocations: 370.7 kB / 0.5742 GB, free: 3.852 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.3575, allocations: 0.5341 MB / 0.5748 GB, free: 3.309 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.3588, allocations: 0.6627 MB / 0.5754 GB, free: 2.602 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.007422/0.3662, allocations: 3.076 MB / 0.5784 GB, free: 15.46 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3662, allocations: 0 / 0.5784 GB, free: 15.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008133/0.3744, allocations: 2.514 MB / 0.5809 GB, free: 12.92 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.782e-05/0.3744, allocations: 57.61 kB / 0.5809 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.3745, allocations: 4 kB / 0.5809 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002631/0.3771, allocations: 1.078 MB / 0.582 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005097/0.3776, allocations: 115.8 kB / 0.5821 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01685/0.3944, allocations: 6.653 MB / 0.5886 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007907/0.3952, allocations: 91.83 kB / 0.5887 GB, free: 4.816 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.3954, allocations: 35.98 kB / 0.5887 GB, free: 4.781 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.0004906/0.3958, allocations: 287.4 kB / 0.589 GB, free: 4.492 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/0.396, allocations: 59.61 kB / 0.589 GB, free: 4.434 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008446/0.4044, allocations: 2.419 MB / 0.5914 GB, free: 2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.4044, allocations: 8 kB / 0.5914 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.4044, allocations: 3.938 kB / 0.5914 GB, free: 1.988 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.4044, allocations: 7.922 kB / 0.5914 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01027/0.4147, allocations: 3.289 MB / 0.5946 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.4147, allocations: 0 / 0.5946 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004151/0.4151, allocations: 75.91 kB / 0.5947 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002641/0.4178, allocations: 1.101 MB / 0.5958 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.4179, allocations: 23.97 kB / 0.5958 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01684/0.4347, allocations: 6.622 MB / 0.6023 GB, free: 6.703 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.4347, allocations: 3.984 kB / 0.6023 GB, free: 6.699 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/0.445, allocations: 3.195 MB / 0.6054 GB, free: 3.469 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005341/0.4456, allocations: 147.5 kB / 0.6055 GB, free: 3.324 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001758/0.4457, allocations: 27.98 kB / 0.6056 GB, free: 3.297 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008137/0.4465, allocations: 103.8 kB / 0.6057 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004516/0.447, allocations: 176.1 kB / 0.6058 GB, free: 3.023 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.824e-05/0.4471, allocations: 20 kB / 0.6058 GB, free: 3.004 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003977/0.4475, allocations: 287.1 kB / 0.6061 GB, free: 2.723 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4475, allocations: 8 kB / 0.6061 GB, free: 2.715 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009474/0.4484, allocations: 220 kB / 0.6063 GB, free: 2.5 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.0002145/0.4486, allocations: 131.8 kB / 0.6065 GB, free: 2.363 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004964/0.4536, allocations: 1.698 MB / 0.6081 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.778e-06/0.4536, allocations: 0 / 0.6081 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003484/0.4571, allocations: 1.087 MB / 0.6092 GB, free: 15.53 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009156/0.458, allocations: 136.1 kB / 0.6093 GB, free: 15.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003637/0.4616, allocations: 1.767 MB / 0.611 GB, free: 13.57 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000506/0.4621, allocations: 403.2 kB / 0.6114 GB, free: 13.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.4623, allocations: 51.42 kB / 0.6115 GB, free: 13.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4623, allocations: 0 / 0.6115 GB, free: 13.1 MB / 462.1 MB Notification: Performance of Templates: time 0.02129/0.4836, allocations: 13.45 MB / 0.6246 GB, free: 15.67 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/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: 9.902671082410961]