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.001508/0.001508, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001949/0.001949, allocations: 164.4 kB / 24.82 MB, free: 9.266 MB / 18.57 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.076/1.076, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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.316/0.316, allocations: 29.42 MB / 291.2 MB, free: 2.484 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.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.913e-06/1.913e-06, allocations: 0 / 370.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.516e-05/1.707e-05, allocations: 6.312 kB / 370.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.00592/0.005937, allocations: 5.533 MB / 375.6 MB, free: 5.188 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003131/0.009067, allocations: 1.636 MB / 377.3 MB, free: 3.547 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005468/0.009614, allocations: 35.69 kB / 377.3 MB, free: 3.512 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000586/0.0102, allocations: 154.7 kB / 377.5 MB, free: 3.359 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001017/0.01122, allocations: 449.4 kB / 377.9 MB, free: 2.918 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009265/0.01214, allocations: 367.3 kB / 378.3 MB, free: 2.559 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001792/0.01394, allocations: 1.511 MB / 379.8 MB, free: 1.043 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003462/0.01428, allocations: 238.2 kB / 380 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001125/0.01541, allocations: 0.8809 MB / 380.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007734/0.01618, allocations: 0.5806 MB / 381.5 MB, free: 15.35 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.01631, allocations: 84 kB / 381.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.01644, allocations: 88 kB / 381.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003418/0.01678, allocations: 430.9 kB / 382.1 MB, free: 14.76 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003043/0.01709, allocations: 319.4 kB / 382.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000757/0.01784, allocations: 0.7632 MB / 383.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.01785, allocations: 0 / 383.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.01785, allocations: 0 / 383.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.01786, allocations: 0 / 383.1 MB, free: 13.68 MB / 362.7 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.001755/0.01962, allocations: 1.286 MB / 384.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.01967, allocations: 11.98 kB / 384.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/0.01988, allocations: 164.4 kB / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000686/0.02056, allocations: 0.572 MB / 385.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004684/0.02103, allocations: 0.7331 MB / 385.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.02113, allocations: 68.33 kB / 386 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008382/0.02197, allocations: 0.6544 MB / 386.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.378e-05/0.022, allocations: 7.938 kB / 386.6 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.172e-05/0.02205, allocations: 24 kB / 386.6 MB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.095e-05/0.02214, allocations: 29.31 kB / 386.7 MB, free: 9.852 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004542/0.02259, allocations: 326 kB / 387 MB, free: 9.535 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.02542, allocations: 2.868 MB / 389.9 MB, free: 6.574 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000574/0.02599, allocations: 405.1 kB / 390.3 MB, free: 6.156 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003838/0.02637, allocations: 268.8 kB / 390.5 MB, free: 5.887 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.243e-05/0.02643, allocations: 12.5 kB / 390.5 MB, free: 5.871 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003752/0.0268, allocations: 331.9 kB / 390.9 MB, free: 5.523 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.395e-06/0.0268, allocations: 4 kB / 390.9 MB, free: 5.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.005521/0.03233, allocations: 2.721 MB / 393.6 MB, free: 2.762 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.03238, allocations: 89.59 kB / 393.7 MB, free: 2.656 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003329/0.03272, allocations: 446.3 kB / 394.1 MB, free: 2.199 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.03277, allocations: 37.7 kB / 394.1 MB, free: 2.156 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.03299, allocations: 387.4 kB / 394.5 MB, free: 1.773 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/0.03314, allocations: 218.2 kB / 394.7 MB, free: 1.559 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/0.0333, allocations: 139.9 kB / 394.9 MB, free: 1.414 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002082/0.03351, allocations: 0.5429 MB / 395.4 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002186/0.03373, allocations: 179.2 kB / 395.6 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.03401, allocations: 354.4 kB / 395.9 MB, free: 276 kB / 362.7 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.0009278/0.03493, allocations: 0.8198 MB / 396.7 MB, free: 15.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.03494, allocations: 3.938 kB / 396.8 MB, free: 15.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001996/0.03693, allocations: 1.319 MB / 398.1 MB, free: 14.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.166e-05/0.03699, allocations: 49.69 kB / 398.1 MB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.629e-06/0.037, allocations: 4 kB / 398.1 MB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001982/0.03898, allocations: 1.419 MB / 399.5 MB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/0.03922, allocations: 99.83 kB / 399.6 MB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00414/0.04336, allocations: 3.307 MB / 402.9 MB, free: 9.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003729/0.04373, allocations: 47.95 kB / 403 MB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-05/0.0438, allocations: 47.97 kB / 403 MB, free: 8.941 MB / 378.7 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.0003347/0.04413, allocations: 206.6 kB / 403.2 MB, free: 8.727 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/0.04425, allocations: 75.61 kB / 403.3 MB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.04621, allocations: 1.189 MB / 404.5 MB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.04622, allocations: 8 kB / 404.5 MB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.04622, allocations: 0 / 404.5 MB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.04623, allocations: 3.984 kB / 404.5 MB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002773/0.049, allocations: 1.967 MB / 406.5 MB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.04901, allocations: 0 / 406.5 MB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001771/0.04918, allocations: 71.91 kB / 406.6 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00191/0.05109, allocations: 1.409 MB / 408 MB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.57e-05/0.05114, allocations: 19.98 kB / 408 MB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003619/0.05476, allocations: 3.3 MB / 411.3 MB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.05476, allocations: 0 / 411.3 MB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002318/0.05708, allocations: 1.509 MB / 412.8 MB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002176/0.0573, allocations: 123.5 kB / 412.9 MB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.81e-05/0.05736, allocations: 31.98 kB / 412.9 MB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.05761, allocations: 63.88 kB / 413 MB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.05775, allocations: 72.36 kB / 413.1 MB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.122e-05/0.05778, allocations: 19.98 kB / 413.1 MB, free: 14.63 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001764/0.05796, allocations: 267 kB / 413.4 MB, free: 14.37 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.05796, allocations: 0 / 413.4 MB, free: 14.37 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006178/0.05858, allocations: 224 kB / 413.6 MB, free: 14.15 MB / 394.7 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.0001746/0.05875, allocations: 131.2 kB / 413.7 MB, free: 14.01 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.06008, allocations: 0.9731 MB / 414.7 MB, free: 13.01 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.06009, allocations: 4 kB / 414.7 MB, free: 13 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009026/0.06099, allocations: 0.6497 MB / 415.3 MB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005403/0.06153, allocations: 175.3 kB / 415.5 MB, free: 12.17 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.06362, allocations: 1.396 MB / 416.9 MB, free: 10.71 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001613/0.06378, allocations: 210.9 kB / 417.1 MB, free: 10.49 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001901/0.06397, allocations: 72.88 kB / 417.2 MB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002507/0.06422, allocations: 202.1 kB / 417.4 MB, free: 10.21 MB / 394.7 MB Notification: Performance of SimCode: time 1.182e-06/0.06423, allocations: 0 / 417.4 MB, free: 10.21 MB / 394.7 MB Notification: Performance of Templates: time 0.02246/0.08669, allocations: 16.7 MB / 434.1 MB, free: 9.645 MB / 410.7 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=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.970089120324701]