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.001648/0.001648, allocations: 82.75 kB / 20.68 MB, free: 1.023 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.001627/0.001627, allocations: 163.2 kB / 23.95 MB, free: 4.156 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.409/1.409, allocations: 177.2 MB / 204.3 MB, free: 9.168 MB / 190.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.1692/0.1692, allocations: 29.44 MB / 290.1 MB, free: 3.273 MB / 270.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: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 430.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.855e-05/3.001e-05, allocations: 9.594 kB / 430.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008349/0.008379, allocations: 6.224 MB / 436.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003559/0.01194, allocations: 1.613 MB / 438.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004453/0.01238, allocations: 39.69 kB / 438.6 MB, free: 9.996 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000592/0.01298, allocations: 158.7 kB / 438.8 MB, free: 9.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001181/0.01416, allocations: 465.3 kB / 439.2 MB, free: 9.383 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008327/0.01499, allocations: 359.2 kB / 439.6 MB, free: 9.031 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001636/0.01663, allocations: 1.519 MB / 441.1 MB, free: 7.508 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003968/0.01702, allocations: 238.2 kB / 441.3 MB, free: 7.273 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001323/0.01834, allocations: 0.8221 MB / 442.1 MB, free: 6.449 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.01938, allocations: 0.6235 MB / 442.8 MB, free: 5.824 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001587/0.01954, allocations: 96 kB / 442.8 MB, free: 5.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.01972, allocations: 100 kB / 442.9 MB, free: 5.633 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004314/0.02015, allocations: 438.9 kB / 443.4 MB, free: 5.203 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004174/0.02057, allocations: 347.3 kB / 443.7 MB, free: 4.863 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001378/0.02195, allocations: 1.231 MB / 444.9 MB, free: 3.629 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.02195, allocations: 4 kB / 444.9 MB, free: 3.625 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.02196, allocations: 0 / 444.9 MB, free: 3.625 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.419e-05/0.02198, allocations: 0 / 444.9 MB, free: 3.625 MB / 366.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.002733/0.02471, allocations: 1.249 MB / 446.2 MB, free: 2.324 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.02475, allocations: 19.92 kB / 446.2 MB, free: 2.305 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.02495, allocations: 108.4 kB / 446.3 MB, free: 2.199 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.02637, allocations: 0.6603 MB / 447 MB, free: 1.516 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007113/0.02708, allocations: 0.7486 MB / 447.7 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.02722, allocations: 68.38 kB / 447.8 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1807/0.208, allocations: 1.139 MB / 448.9 MB, free: 30.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.208, allocations: 2.25 kB / 448.9 MB, free: 30.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.992e-05/0.2081, allocations: 24.27 kB / 449 MB, free: 30.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001369/0.2082, allocations: 38.42 kB / 449 MB, free: 30.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002745/0.2109, allocations: 1.176 MB / 450.2 MB, free: 29.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004709/0.2156, allocations: 3.136 MB / 453.3 MB, free: 28.01 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002608/0.2183, allocations: 0.9192 MB / 454.2 MB, free: 27.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/0.22, allocations: 0.6585 MB / 454.9 MB, free: 27.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.113e-05/0.2201, allocations: 6.625 kB / 454.9 MB, free: 27.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001567/0.2216, allocations: 0.6829 MB / 455.6 MB, free: 27.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.915e-06/0.2216, allocations: 0 / 455.6 MB, free: 27.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.02091/0.2425, allocations: 5.503 MB / 461.1 MB, free: 26.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.105e-05/0.2426, allocations: 88.11 kB / 461.2 MB, free: 26.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004947/0.2431, allocations: 428.3 kB / 461.6 MB, free: 25.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.2432, allocations: 42.36 kB / 461.6 MB, free: 25.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.2434, allocations: 337.8 kB / 462 MB, free: 25.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.2435, allocations: 215.2 kB / 462.2 MB, free: 25.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.2437, allocations: 124.2 kB / 462.3 MB, free: 25.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.96e-05/0.2438, allocations: 369.5 kB / 462.7 MB, free: 25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001097/0.2449, allocations: 0.5416 MB / 463.2 MB, free: 24.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.246, allocations: 0.6643 MB / 463.9 MB, free: 24.35 MB / 366.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.006671/0.2527, allocations: 3.076 MB / 466.9 MB, free: 22.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.2527, allocations: 1.312 kB / 466.9 MB, free: 22.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007524/0.2602, allocations: 2.509 MB / 469.4 MB, free: 21.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.082e-05/0.2603, allocations: 52.06 kB / 469.5 MB, free: 21.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.2603, allocations: 2.969 kB / 469.5 MB, free: 21.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00229/0.2626, allocations: 1.088 MB / 470.6 MB, free: 21.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004722/0.263, allocations: 107.6 kB / 470.7 MB, free: 21.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01455/0.2776, allocations: 6.667 MB / 477.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007985/0.2784, allocations: 75.97 kB / 477.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.911e-05/0.2785, allocations: 43.97 kB / 477.5 MB, free: 14.83 MB / 366.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.0003832/0.2789, allocations: 294.6 kB / 477.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.929e-05/0.279, allocations: 63.19 kB / 477.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007648/0.2866, allocations: 2.419 MB / 480.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.2866, allocations: 4 kB / 480.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.2866, allocations: 0 / 480.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.2866, allocations: 11.92 kB / 480.3 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008805/0.2954, allocations: 3.28 MB / 483.5 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.2954, allocations: 4 kB / 483.5 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003491/0.2958, allocations: 75.83 kB / 483.6 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002182/0.298, allocations: 1.094 MB / 484.7 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.431e-05/0.298, allocations: 23.98 kB / 484.7 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01418/0.3122, allocations: 6.625 MB / 491.4 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3122, allocations: 4 kB / 491.4 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/0.3225, allocations: 3.185 MB / 494.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004603/0.323, allocations: 151.6 kB / 494.7 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/0.3231, allocations: 27.98 kB / 494.7 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007703/0.3239, allocations: 95.86 kB / 494.8 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004543/0.3243, allocations: 184 kB / 495 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.243e-05/0.3244, allocations: 19.98 kB / 495 MB, free: 13.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000379/0.3248, allocations: 287.1 kB / 495.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3248, allocations: 0 / 495.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001029/0.3258, allocations: 224 kB / 495.5 MB, free: 12.59 MB / 382.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.0002335/0.326, allocations: 127.7 kB / 495.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004984/0.331, allocations: 1.698 MB / 497.3 MB, free: 10.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.331, allocations: 0 / 497.3 MB, free: 10.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003398/0.3344, allocations: 1.083 MB / 498.4 MB, free: 9.629 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008613/0.3353, allocations: 148.5 kB / 498.6 MB, free: 9.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003072/0.3384, allocations: 1.61 MB / 0.4885 GB, free: 7.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.3388, allocations: 399.3 kB / 0.4888 GB, free: 7.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003183/0.3391, allocations: 120.9 kB / 0.489 GB, free: 7.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.3392, allocations: 48.42 kB / 0.489 GB, free: 7.266 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3392, allocations: 2.625 kB / 0.489 GB, free: 7.266 MB / 382.1 MB Notification: Performance of Templates: time 0.02447/0.3637, allocations: 15.48 MB / 0.5041 GB, free: 7.891 MB / 398.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/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.229357037693262]