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.002002/0.002002, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.003013/0.003013, allocations: 209.2 kB / 23.73 MB, free: 4.387 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.615/1.615, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.1894/0.1894, allocations: 38.55 MB / 352.5 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.002152/0.002152, allocations: 74.39 kB / 493 MB, free: 4.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4983/0.5005, allocations: 62.45 MB / 0.5424 GB, free: 424 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.01156/0.512, allocations: 6.268 MB / 0.5485 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004571/0.5166, allocations: 1.605 MB / 0.5501 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009466/0.5176, allocations: 35.81 kB / 0.5501 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009763/0.5185, allocations: 155.5 kB / 0.5503 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002093/0.5206, allocations: 457.8 kB / 0.5507 GB, free: 9.891 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001372/0.522, allocations: 347.5 kB / 0.5511 GB, free: 9.613 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0031/0.5251, allocations: 1.512 MB / 0.5525 GB, free: 8.734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006514/0.5258, allocations: 254.5 kB / 0.5528 GB, free: 8.582 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001998/0.5278, allocations: 0.6316 MB / 0.5534 GB, free: 8.219 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002215/0.53, allocations: 0.6678 MB / 0.5541 GB, free: 7.832 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006854/0.5307, allocations: 98.03 kB / 0.5541 GB, free: 7.832 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008913/0.5315, allocations: 102.8 kB / 0.5542 GB, free: 7.828 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009397/0.5325, allocations: 420.6 kB / 0.5546 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001516/0.534, allocations: 399.4 kB / 0.555 GB, free: 7.281 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00212/0.5361, allocations: 1.199 MB / 0.5562 GB, free: 6.078 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.5361, allocations: 3.984 kB / 0.5562 GB, free: 6.074 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.5361, allocations: 0 / 0.5562 GB, free: 6.074 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.478e-05/0.5361, allocations: 0 / 0.5562 GB, free: 6.074 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.003257/0.5394, allocations: 1.253 MB / 0.5574 GB, free: 4.777 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.5395, allocations: 11.98 kB / 0.5574 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002225/0.5397, allocations: 100.4 kB / 0.5575 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/0.5414, allocations: 0.661 MB / 0.5582 GB, free: 3.977 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008308/0.5422, allocations: 0.7522 MB / 0.5589 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/0.5424, allocations: 67.98 kB / 0.559 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.5449, allocations: 1.141 MB / 0.5601 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.5449, allocations: 0 / 0.5601 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.892e-05/0.545, allocations: 27.98 kB / 0.5601 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/0.5451, allocations: 37.3 kB / 0.5602 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002816/0.5479, allocations: 1.176 MB / 0.5613 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005873/0.5538, allocations: 3.149 MB / 0.5644 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002599/0.5564, allocations: 0.9214 MB / 0.5653 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001766/0.5582, allocations: 0.6537 MB / 0.5659 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.47e-05/0.5582, allocations: 4.5 kB / 0.5659 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001596/0.5598, allocations: 0.6879 MB / 0.5666 GB, free: 11.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.986e-06/0.5598, allocations: 0 / 0.5666 GB, free: 11.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.02/0.5798, allocations: 5.503 MB / 0.572 GB, free: 5.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.262e-05/0.5799, allocations: 89.61 kB / 0.572 GB, free: 5.395 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006307/0.5806, allocations: 425.8 kB / 0.5725 GB, free: 4.973 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.5807, allocations: 41.7 kB / 0.5725 GB, free: 4.926 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003568/0.581, allocations: 336.7 kB / 0.5728 GB, free: 4.594 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002598/0.5813, allocations: 214.2 kB / 0.573 GB, free: 4.383 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/0.5816, allocations: 130.3 kB / 0.5731 GB, free: 4.25 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.5818, allocations: 370.7 kB / 0.5735 GB, free: 3.879 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.583, allocations: 0.5341 MB / 0.574 GB, free: 3.336 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.5842, allocations: 0.6588 MB / 0.5747 GB, free: 2.633 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.0073/0.5915, allocations: 3.085 MB / 0.5777 GB, free: 15.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.5915, allocations: 4 kB / 0.5777 GB, free: 15.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008096/0.5996, allocations: 2.51 MB / 0.5801 GB, free: 12.95 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/0.5997, allocations: 57.67 kB / 0.5802 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.5997, allocations: 0 / 0.5802 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002642/0.6024, allocations: 1.086 MB / 0.5812 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000603/0.603, allocations: 111.9 kB / 0.5814 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01691/0.6199, allocations: 6.651 MB / 0.5878 GB, free: 4.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009161/0.6208, allocations: 95.89 kB / 0.5879 GB, free: 4.836 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-05/0.6209, allocations: 35.98 kB / 0.588 GB, free: 4.801 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.0005815/0.6215, allocations: 279.5 kB / 0.5882 GB, free: 4.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.6216, allocations: 63.61 kB / 0.5883 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008182/0.6298, allocations: 2.415 MB / 0.5907 GB, free: 2.027 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/0.6298, allocations: 8 kB / 0.5907 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.6298, allocations: 3.938 kB / 0.5907 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.018e-05/0.6298, allocations: 3.984 kB / 0.5907 GB, free: 2.012 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/0.6401, allocations: 3.293 MB / 0.5939 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/0.6401, allocations: 3.938 kB / 0.5939 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004699/0.6406, allocations: 75.91 kB / 0.594 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002621/0.6432, allocations: 1.105 MB / 0.595 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001496/0.6433, allocations: 15.98 kB / 0.5951 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01655/0.6599, allocations: 6.626 MB / 0.6015 GB, free: 6.727 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.6599, allocations: 3.938 kB / 0.6015 GB, free: 6.723 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01031/0.6702, allocations: 3.195 MB / 0.6047 GB, free: 3.492 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005366/0.6707, allocations: 143.5 kB / 0.6048 GB, free: 3.352 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.6709, allocations: 43.91 kB / 0.6048 GB, free: 3.309 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007707/0.6716, allocations: 91.88 kB / 0.6049 GB, free: 3.219 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004763/0.6721, allocations: 168.2 kB / 0.6051 GB, free: 3.055 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.825e-05/0.6722, allocations: 23.98 kB / 0.6051 GB, free: 3.031 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004031/0.6726, allocations: 295.1 kB / 0.6054 GB, free: 2.742 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6726, allocations: 0 / 0.6054 GB, free: 2.742 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009743/0.6735, allocations: 220 kB / 0.6056 GB, free: 2.527 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.0002216/0.6738, allocations: 129.9 kB / 0.6057 GB, free: 2.395 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004859/0.6786, allocations: 1.706 MB / 0.6074 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.6786, allocations: 384 / 0.6074 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003412/0.682, allocations: 1.087 MB / 0.6084 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009705/0.683, allocations: 144 kB / 0.6086 GB, free: 15.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003591/0.6866, allocations: 1.707 MB / 0.6103 GB, free: 13.65 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005188/0.6871, allocations: 403.3 kB / 0.6106 GB, free: 13.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004763/0.6876, allocations: 116.9 kB / 0.6107 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.6877, allocations: 43.42 kB / 0.6108 GB, free: 13.07 MB / 462.1 MB Notification: Performance of SimCode: time 1.713e-06/0.6877, allocations: 4 kB / 0.6108 GB, free: 13.07 MB / 462.1 MB Notification: Performance of Templates: time 0.02904/0.7168, allocations: 16.45 MB / 0.6269 GB, free: 12.71 MB / 478.1 MB " [Timeout remaining time 659] 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: 6.439139949157834]