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.001512/0.001512, allocations: 112.2 kB / 21.19 MB, free: 0.7812 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.001644/0.001644, allocations: 214.5 kB / 24.49 MB, free: 4.18 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.379/1.379, allocations: 230.6 MB / 258.3 MB, free: 8.207 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.1724/0.1724, allocations: 38.52 MB / 353.2 MB, free: 12.58 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.001928/0.001928, allocations: 63.89 kB / 493.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2645, allocations: 62.47 MB / 0.5432 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007745/0.2723, allocations: 6.757 MB / 0.5498 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002822/0.2751, allocations: 1.701 MB / 0.5515 GB, free: 9.973 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002835/0.2754, allocations: 37.38 kB / 0.5515 GB, free: 9.953 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004672/0.2758, allocations: 167.1 kB / 0.5517 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008557/0.2767, allocations: 448.9 kB / 0.5521 GB, free: 9.453 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006582/0.2774, allocations: 351.6 kB / 0.5524 GB, free: 9.172 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001581/0.2789, allocations: 1.509 MB / 0.5539 GB, free: 8.297 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000388/0.2793, allocations: 249.7 kB / 0.5542 GB, free: 8.148 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00107/0.2804, allocations: 0.6365 MB / 0.5548 GB, free: 7.781 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009911/0.2814, allocations: 0.6944 MB / 0.5555 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001408/0.2815, allocations: 98.38 kB / 0.5555 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.2817, allocations: 99.12 kB / 0.5556 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004152/0.2821, allocations: 421.1 kB / 0.556 GB, free: 7.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004919/0.2826, allocations: 471.3 kB / 0.5565 GB, free: 6.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001261/0.2839, allocations: 1.189 MB / 0.5577 GB, free: 5.641 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2839, allocations: 0 / 0.5577 GB, free: 5.641 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2839, allocations: 0 / 0.5577 GB, free: 5.641 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.717e-05/0.2839, allocations: 0 / 0.5577 GB, free: 5.641 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.00271/0.2866, allocations: 1.26 MB / 0.5589 GB, free: 4.336 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.2866, allocations: 11.98 kB / 0.5589 GB, free: 4.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.2868, allocations: 100.4 kB / 0.559 GB, free: 4.227 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/0.2883, allocations: 0.6688 MB / 0.5596 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000636/0.2889, allocations: 0.7483 MB / 0.5604 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.2891, allocations: 67.98 kB / 0.5604 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002277/0.2914, allocations: 1.141 MB / 0.5616 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.2914, allocations: 0 / 0.5616 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.856e-05/0.2914, allocations: 31.98 kB / 0.5616 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001197/0.2916, allocations: 37.28 kB / 0.5616 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002637/0.2942, allocations: 1.176 MB / 0.5628 GB, free: 140 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005326/0.2995, allocations: 3.453 MB / 0.5661 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002354/0.3019, allocations: 0.9133 MB / 0.567 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001589/0.3035, allocations: 0.65 MB / 0.5677 GB, free: 11.01 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.523e-05/0.3035, allocations: 8.5 kB / 0.5677 GB, free: 11 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001477/0.305, allocations: 0.684 MB / 0.5683 GB, free: 10.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.565e-06/0.305, allocations: 0 / 0.5683 GB, free: 10.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.01806/0.3231, allocations: 5.518 MB / 0.5737 GB, free: 4.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.843e-05/0.3231, allocations: 89.61 kB / 0.5738 GB, free: 4.625 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000546/0.3237, allocations: 469.9 kB / 0.5743 GB, free: 4.156 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.115e-05/0.3238, allocations: 45.64 kB / 0.5743 GB, free: 4.105 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.324, allocations: 328.8 kB / 0.5746 GB, free: 3.777 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002001/0.3242, allocations: 218.2 kB / 0.5748 GB, free: 3.562 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000226/0.3245, allocations: 130.3 kB / 0.575 GB, free: 3.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.3246, allocations: 374.8 kB / 0.5753 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/0.3257, allocations: 0.5012 MB / 0.5758 GB, free: 2.555 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001161/0.3269, allocations: 0.6298 MB / 0.5764 GB, free: 1.883 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.006695/0.3336, allocations: 3.062 MB / 0.5794 GB, free: 14.76 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.3336, allocations: 4 kB / 0.5794 GB, free: 14.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007141/0.3407, allocations: 2.485 MB / 0.5818 GB, free: 12.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.198e-05/0.3408, allocations: 53.69 kB / 0.5819 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.3408, allocations: 4 kB / 0.5819 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002356/0.3431, allocations: 1.082 MB / 0.5829 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/0.3436, allocations: 111.8 kB / 0.5831 GB, free: 10.99 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01496/0.3585, allocations: 6.756 MB / 0.5897 GB, free: 4.121 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006914/0.3592, allocations: 87.95 kB / 0.5897 GB, free: 4.035 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.541e-05/0.3593, allocations: 35.98 kB / 0.5898 GB, free: 4 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.0004388/0.3598, allocations: 291.4 kB / 0.59 GB, free: 3.707 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.3599, allocations: 63.61 kB / 0.5901 GB, free: 3.645 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007381/0.3672, allocations: 2.423 MB / 0.5925 GB, free: 1.211 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.3673, allocations: 8 kB / 0.5925 GB, free: 1.203 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.3673, allocations: 0 / 0.5925 GB, free: 1.203 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3673, allocations: 3.984 kB / 0.5925 GB, free: 1.199 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009028/0.3763, allocations: 3.53 MB / 0.5959 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.3763, allocations: 8.156 kB / 0.5959 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003654/0.3767, allocations: 71.89 kB / 0.596 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002375/0.379, allocations: 1.093 MB / 0.5971 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.574e-05/0.3791, allocations: 28.09 kB / 0.5971 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01485/0.394, allocations: 6.725 MB / 0.6037 GB, free: 5.543 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.394, allocations: 0 / 0.6037 GB, free: 5.543 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008847/0.4028, allocations: 3.206 MB / 0.6068 GB, free: 2.301 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004403/0.4033, allocations: 147.6 kB / 0.6069 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.4034, allocations: 31.98 kB / 0.607 GB, free: 2.125 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006628/0.4041, allocations: 91.88 kB / 0.6071 GB, free: 2.035 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003956/0.4045, allocations: 180 kB / 0.6072 GB, free: 1.859 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-05/0.4045, allocations: 23.98 kB / 0.6073 GB, free: 1.836 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003808/0.4049, allocations: 318.9 kB / 0.6076 GB, free: 1.527 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4049, allocations: 3.938 kB / 0.6076 GB, free: 1.523 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007792/0.4057, allocations: 224 kB / 0.6078 GB, free: 1.305 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.0001833/0.4059, allocations: 131.2 kB / 0.6079 GB, free: 1.168 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004225/0.4101, allocations: 1.673 MB / 0.6095 GB, free: 15.46 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4101, allocations: 0 / 0.6095 GB, free: 15.46 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003006/0.4131, allocations: 1.079 MB / 0.6106 GB, free: 14.36 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008576/0.414, allocations: 164.7 kB / 0.6108 GB, free: 14.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003159/0.4171, allocations: 1.783 MB / 0.6125 GB, free: 12.37 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006565/0.4178, allocations: 0.9966 MB / 0.6135 GB, free: 11.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.4179, allocations: 51.44 kB / 0.6135 GB, free: 11.29 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4179, allocations: 0 / 0.6135 GB, free: 11.29 MB / 462.1 MB Notification: Performance of Templates: time 0.01797/0.4359, allocations: 13.53 MB / 0.6267 GB, free: 13.8 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.408584291115403]