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.001136/0.001136, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001389/0.001389, allocations: 169.1 kB / 24.91 MB, free: 9.199 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.11/1.11, 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.2455/0.2455, allocations: 29.42 MB / 291.2 MB, free: 2.48 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.262e-06/1.262e-06, allocations: 0 / 316.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.5e-05/1.626e-05, allocations: 2.312 kB / 316.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005233/0.005249, allocations: 5.607 MB / 322.5 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002527/0.007777, allocations: 1.68 MB / 324.2 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003688/0.008146, allocations: 43.62 kB / 324.2 MB, free: 8.582 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004215/0.008567, allocations: 154.8 kB / 324.4 MB, free: 8.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006888/0.009256, allocations: 445.4 kB / 324.8 MB, free: 7.992 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005849/0.009841, allocations: 355.3 kB / 325.2 MB, free: 7.645 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001232/0.01107, allocations: 1.519 MB / 326.7 MB, free: 6.121 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002916/0.01136, allocations: 264 kB / 326.9 MB, free: 5.859 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.01246, allocations: 0.8654 MB / 327.8 MB, free: 4.992 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007629/0.01322, allocations: 0.5533 MB / 328.3 MB, free: 4.438 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.01335, allocations: 84 kB / 328.4 MB, free: 4.355 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.0135, allocations: 92 kB / 328.5 MB, free: 4.266 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003061/0.0138, allocations: 431 kB / 328.9 MB, free: 3.844 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002957/0.0141, allocations: 319.3 kB / 329.3 MB, free: 3.531 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007331/0.01483, allocations: 0.7593 MB / 330 MB, free: 2.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.01484, allocations: 0 / 330 MB, free: 2.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01484, allocations: 0 / 330 MB, free: 2.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.01485, allocations: 0 / 330 MB, free: 2.77 MB / 298.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.001419/0.01627, allocations: 1.142 MB / 331.2 MB, free: 1.586 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.0163, allocations: 15.98 kB / 331.2 MB, free: 1.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.01647, allocations: 136.8 kB / 331.3 MB, free: 1.438 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006271/0.0171, allocations: 0.5185 MB / 331.8 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003502/0.01745, allocations: 0.7292 MB / 332.5 MB, free: 12 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.804e-05/0.01755, allocations: 68.42 kB / 332.6 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007122/0.01826, allocations: 0.6372 MB / 333.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.01827, allocations: 0 / 333.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.76e-05/0.01832, allocations: 28 kB / 333.3 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.426e-05/0.01839, allocations: 33.23 kB / 333.3 MB, free: 15.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004439/0.01883, allocations: 297 kB / 333.6 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/0.02129, allocations: 2.134 MB / 335.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005824/0.02187, allocations: 409 kB / 336.1 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003465/0.02222, allocations: 243.1 kB / 336.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.952e-05/0.02226, allocations: 8.5 kB / 336.4 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003613/0.02262, allocations: 327.5 kB / 336.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=59): time 2.945e-06/0.02262, allocations: 0 / 336.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=60): time 0.008284/0.03091, allocations: 3.83 MB / 340.5 MB, free: 7.828 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.03095, allocations: 89.55 kB / 340.6 MB, free: 7.723 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002542/0.03121, allocations: 379 kB / 341 MB, free: 7.336 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.369e-05/0.03126, allocations: 45.69 kB / 341 MB, free: 7.285 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.03141, allocations: 281.7 kB / 341.3 MB, free: 7.004 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.03154, allocations: 210.2 kB / 341.5 MB, free: 6.797 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.03169, allocations: 118.2 kB / 341.6 MB, free: 6.676 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.03179, allocations: 370.7 kB / 342 MB, free: 6.305 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.03199, allocations: 165.8 kB / 342.2 MB, free: 6.137 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.0322, allocations: 273.3 kB / 342.4 MB, free: 5.824 MB / 314.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.000849/0.03305, allocations: 0.7623 MB / 343.2 MB, free: 5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.03305, allocations: 0 / 343.2 MB, free: 5 MB / 314.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001951/0.035, allocations: 1.183 MB / 344.4 MB, free: 3.793 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.748e-05/0.03505, allocations: 48.03 kB / 344.4 MB, free: 3.742 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.03506, allocations: 4 kB / 344.4 MB, free: 3.738 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002073/0.03713, allocations: 1.399 MB / 345.8 MB, free: 2.336 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.03744, allocations: 115.8 kB / 345.9 MB, free: 2.223 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00408/0.04152, allocations: 2.752 MB / 348.7 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003674/0.04189, allocations: 47.95 kB / 348.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.093e-05/0.04195, allocations: 39.98 kB / 348.8 MB, free: 15.3 MB / 330.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: 13 * 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 (62): * Single equations (assignments): 60 * 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.0002548/0.0422, allocations: 162.6 kB / 348.9 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.878e-05/0.04229, allocations: 55.89 kB / 349 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/0.04423, allocations: 1.073 MB / 350.1 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.04424, allocations: 8 kB / 350.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.04424, allocations: 0 / 350.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.04425, allocations: 3.984 kB / 350.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002658/0.04691, allocations: 1.74 MB / 351.8 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.04692, allocations: 4 kB / 351.8 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002024/0.04712, allocations: 71.91 kB / 351.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002032/0.04915, allocations: 1.407 MB / 353.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.967e-05/0.0492, allocations: 15.98 kB / 353.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003671/0.05287, allocations: 2.744 MB / 356 MB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.05287, allocations: 0 / 356 MB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002209/0.05508, allocations: 1.357 MB / 357.4 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.05526, allocations: 103.6 kB / 357.5 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.514e-05/0.05534, allocations: 32.11 kB / 357.5 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.05559, allocations: 55.94 kB / 357.6 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/0.05577, allocations: 80.3 kB / 357.7 MB, free: 6.191 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/0.05581, allocations: 19.98 kB / 357.7 MB, free: 6.172 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001227/0.05593, allocations: 148.7 kB / 357.8 MB, free: 6.027 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05593, allocations: 0 / 357.8 MB, free: 6.027 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006063/0.05653, allocations: 224 kB / 358.1 MB, free: 5.809 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (49): * Single equations (assignments): 41 * 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.0001578/0.05669, allocations: 113.1 kB / 358.2 MB, free: 5.688 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.05796, allocations: 0.8687 MB / 359 MB, free: 4.781 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.05797, allocations: 4.5 kB / 359 MB, free: 4.777 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008667/0.05883, allocations: 0.5734 MB / 359.6 MB, free: 4.191 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004783/0.05931, allocations: 168.6 kB / 359.8 MB, free: 4.023 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.06125, allocations: 1.348 MB / 361.1 MB, free: 2.629 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000158/0.06141, allocations: 207 kB / 361.3 MB, free: 2.406 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.06159, allocations: 68.91 kB / 361.4 MB, free: 2.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/0.06184, allocations: 165.3 kB / 361.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.06184, allocations: 0 / 361.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of Templates: time 0.01818/0.08002, allocations: 16.68 MB / 378.2 MB, free: 1.672 MB / 346.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 -s gbode -gbm=radauIIA3 -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.336561295669526]