Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.001247/0.001247, allocations: 112.2 kB / 21.19 MB, free: 0.7773 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.001362/0.001362, allocations: 206.3 kB / 24.49 MB, free: 4.164 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.368/1.368, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.1772/0.1772, allocations: 38.53 MB / 353.2 MB, free: 12.56 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.InverterAvToGrid,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.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,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.InverterAvToGrid") [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.001949/0.001949, allocations: 67.89 kB / 493.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2906, allocations: 62.47 MB / 0.5432 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007658/0.2982, allocations: 6.276 MB / 0.5494 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002954/0.3012, allocations: 1.454 MB / 0.5508 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003999/0.3016, allocations: 35.41 kB / 0.5508 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005204/0.3021, allocations: 145.1 kB / 0.551 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009281/0.303, allocations: 395.2 kB / 0.5513 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005373/0.3036, allocations: 190.3 kB / 0.5515 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.3047, allocations: 0.9208 MB / 0.5524 GB, free: 9.391 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003183/0.305, allocations: 178.7 kB / 0.5526 GB, free: 9.281 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007472/0.3057, allocations: 416.3 kB / 0.553 GB, free: 9.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007685/0.3065, allocations: 0.4898 MB / 0.5535 GB, free: 8.766 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.154e-05/0.3066, allocations: 54.36 kB / 0.5535 GB, free: 8.758 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.3067, allocations: 48.12 kB / 0.5536 GB, free: 8.758 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002708/0.307, allocations: 267.5 kB / 0.5538 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000327/0.3073, allocations: 320.4 kB / 0.5541 GB, free: 8.379 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008147/0.3081, allocations: 0.6732 MB / 0.5548 GB, free: 7.926 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3081, allocations: 0 / 0.5548 GB, free: 7.926 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3081, allocations: 3.938 kB / 0.5548 GB, free: 7.922 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.716e-05/0.3081, allocations: 1.438 kB / 0.5548 GB, free: 7.922 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001799/0.3099, allocations: 0.8918 MB / 0.5556 GB, free: 7.242 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.31, allocations: 13.8 kB / 0.5557 GB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.3101, allocations: 73.09 kB / 0.5557 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.3111, allocations: 497.8 kB / 0.5562 GB, free: 6.832 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.049e-05/0.3112, allocations: 45.03 kB / 0.5562 GB, free: 6.809 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.173e-05/0.3113, allocations: 55.98 kB / 0.5563 GB, free: 6.785 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009791/0.3122, allocations: 0.622 MB / 0.5569 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.3123, allocations: 4 kB / 0.5569 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.977e-05/0.3123, allocations: 24 kB / 0.5569 GB, free: 6.285 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001102/0.3124, allocations: 32.97 kB / 0.557 GB, free: 6.254 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008154/0.3132, allocations: 0.5035 MB / 0.5575 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00331/0.3165, allocations: 2.179 MB / 0.5596 GB, free: 3.484 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008365/0.3174, allocations: 469.1 kB / 0.56 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006501/0.318, allocations: 326.8 kB / 0.5603 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.739e-05/0.3181, allocations: 11.94 kB / 0.5604 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.3181, allocations: 42.5 kB / 0.5604 GB, free: 2.621 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.214e-06/0.3181, allocations: 0 / 0.5604 GB, free: 2.621 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003372/0.3215, allocations: 1.593 MB / 0.562 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.227e-05/0.3216, allocations: 89.05 kB / 0.562 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004684/0.322, allocations: 421.8 kB / 0.5624 GB, free: 480 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.884e-05/0.3221, allocations: 33.7 kB / 0.5625 GB, free: 440 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.3223, allocations: 297.1 kB / 0.5628 GB, free: 136 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.3224, allocations: 178.7 kB / 0.5629 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.3226, allocations: 94.3 kB / 0.563 GB, free: 15.86 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3227, allocations: 366.8 kB / 0.5634 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002921/0.323, allocations: 185.2 kB / 0.5635 GB, free: 15.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003781/0.3234, allocations: 315.5 kB / 0.5638 GB, free: 14.95 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.002711/0.3261, allocations: 1.158 MB / 0.565 GB, free: 13.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3261, allocations: 0 / 0.565 GB, free: 13.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001249/0.3274, allocations: 0.6989 MB / 0.5657 GB, free: 13.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.3274, allocations: 10.66 kB / 0.5657 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.527e-06/0.3274, allocations: 4.469 kB / 0.5657 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004005/0.3278, allocations: 144.7 kB / 0.5658 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004517/0.3283, allocations: 111.7 kB / 0.5659 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003082/0.3313, allocations: 2.511 MB / 0.5684 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004376/0.3318, allocations: 24.02 kB / 0.5684 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.3318, allocations: 20 kB / 0.5684 GB, free: 10.1 MB / 414.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: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003519/0.3322, allocations: 225.7 kB / 0.5686 GB, free: 9.871 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.241e-05/0.3323, allocations: 55.61 kB / 0.5687 GB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00117/0.3334, allocations: 0.658 MB / 0.5693 GB, free: 9.152 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.3334, allocations: 8 kB / 0.5693 GB, free: 9.145 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3334, allocations: 112 / 0.5693 GB, free: 9.145 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3334, allocations: 7.875 kB / 0.5693 GB, free: 9.137 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002241/0.3357, allocations: 1.337 MB / 0.5706 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.3357, allocations: 4 kB / 0.5706 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003471/0.336, allocations: 72.05 kB / 0.5707 GB, free: 7.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004004/0.3364, allocations: 148.9 kB / 0.5709 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.8e-05/0.3365, allocations: 19.98 kB / 0.5709 GB, free: 7.477 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002959/0.3394, allocations: 2.516 MB / 0.5733 GB, free: 4.848 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.3395, allocations: 4 kB / 0.5733 GB, free: 4.844 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.341, allocations: 0.973 MB / 0.5743 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.3411, allocations: 51.73 kB / 0.5743 GB, free: 3.781 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.217e-05/0.3412, allocations: 23.97 kB / 0.5744 GB, free: 3.758 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.3415, allocations: 15.92 kB / 0.5744 GB, free: 3.742 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.231e-05/0.3415, allocations: 51.86 kB / 0.5744 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/0.3416, allocations: 8 kB / 0.5744 GB, free: 3.684 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003384/0.3419, allocations: 295.1 kB / 0.5747 GB, free: 3.395 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3419, allocations: 0 / 0.5747 GB, free: 3.395 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006469/0.3425, allocations: 144 kB / 0.5748 GB, free: 3.254 MB / 414.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001339/0.3427, allocations: 107.5 kB / 0.5749 GB, free: 3.141 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.3438, allocations: 0.6372 MB / 0.5756 GB, free: 2.492 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3438, allocations: 0.9375 kB / 0.5756 GB, free: 2.492 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006623/0.3445, allocations: 434 kB / 0.576 GB, free: 2.055 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007505/0.3452, allocations: 149 kB / 0.5761 GB, free: 1.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.3475, allocations: 1.375 MB / 0.5775 GB, free: 492 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005816/0.348, allocations: 0.9292 MB / 0.5784 GB, free: 15.52 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.3482, allocations: 43.42 kB / 0.5784 GB, free: 15.48 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3482, allocations: 0 / 0.5784 GB, free: 15.48 MB / 430.1 MB Notification: Performance of Templates: time 0.01347/0.3617, allocations: 9.248 MB / 0.5875 GB, free: 6.254 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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: 8.267676110146567]