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.0009681/0.0009681, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001067/0.001067, allocations: 168.6 kB / 25.62 MB, free: 8.914 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 0.9924/0.9924, allocations: 177.1 MB / 206.1 MB, free: 4.52 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.1198/0.1198, allocations: 29.44 MB / 292 MB, free: 2.656 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.483e-06/1.483e-06, allocations: 0 / 370.9 MB, free: 32.35 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.802e-05/1.951e-05, allocations: 5.969 kB / 370.9 MB, free: 32.34 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005078/0.005097, allocations: 5.549 MB / 376.4 MB, free: 26.77 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.007529, allocations: 1.632 MB / 378.1 MB, free: 25.13 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003386/0.007868, allocations: 35.69 kB / 378.1 MB, free: 25.1 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000428/0.008296, allocations: 150.9 kB / 378.2 MB, free: 24.95 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006923/0.008988, allocations: 441.4 kB / 378.7 MB, free: 24.52 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005802/0.009568, allocations: 371.3 kB / 379 MB, free: 24.15 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001088/0.01066, allocations: 1.539 MB / 380.6 MB, free: 22.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002914/0.01095, allocations: 238.2 kB / 380.8 MB, free: 22.37 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.01201, allocations: 0.8732 MB / 381.7 MB, free: 21.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007649/0.01278, allocations: 0.5844 MB / 382.3 MB, free: 20.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.01289, allocations: 84 kB / 382.4 MB, free: 20.83 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.01302, allocations: 88 kB / 382.4 MB, free: 20.74 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002744/0.01329, allocations: 427 kB / 382.9 MB, free: 20.32 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000276/0.01357, allocations: 327.3 kB / 383.2 MB, free: 20 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006449/0.01421, allocations: 0.7555 MB / 383.9 MB, free: 19.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.01422, allocations: 0 / 383.9 MB, free: 19.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.01422, allocations: 0 / 383.9 MB, free: 19.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.01423, allocations: 4 kB / 383.9 MB, free: 19.24 MB / 314.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.001621/0.01585, allocations: 1.286 MB / 385.2 MB, free: 17.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.01588, allocations: 8.031 kB / 385.2 MB, free: 17.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001962/0.01608, allocations: 156.4 kB / 385.4 MB, free: 17.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006518/0.01673, allocations: 0.572 MB / 386 MB, free: 17.15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002967/0.01703, allocations: 0.7253 MB / 386.7 MB, free: 16.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.01713, allocations: 64.38 kB / 386.7 MB, free: 16.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008088/0.01794, allocations: 0.6621 MB / 387.4 MB, free: 15.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.01796, allocations: 0 / 387.4 MB, free: 15.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.971e-05/0.01802, allocations: 24 kB / 387.4 MB, free: 15.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.122e-05/0.01809, allocations: 33.31 kB / 387.5 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005364/0.01862, allocations: 326 kB / 387.8 MB, free: 15.12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002836/0.02146, allocations: 2.859 MB / 390.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006574/0.02212, allocations: 401.1 kB / 391 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004463/0.02256, allocations: 277.3 kB / 391.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.202e-05/0.02261, allocations: 8.5 kB / 391.3 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004434/0.02305, allocations: 335.9 kB / 391.6 MB, free: 11.12 MB / 314.7 MB Notification: Performance of pre-optimization done (n=59): time 2.715e-06/0.02305, allocations: 0 / 391.6 MB, free: 11.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.006696/0.02975, allocations: 2.721 MB / 394.4 MB, free: 8.363 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.02978, allocations: 93.59 kB / 394.4 MB, free: 8.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.03004, allocations: 442.3 kB / 394.9 MB, free: 7.797 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.654e-05/0.03008, allocations: 45.7 kB / 394.9 MB, free: 7.746 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.03024, allocations: 379.4 kB / 395.3 MB, free: 7.367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.03036, allocations: 218.2 kB / 395.5 MB, free: 7.152 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.03054, allocations: 139.9 kB / 395.6 MB, free: 7.008 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.128e-05/0.03063, allocations: 0.5468 MB / 396.2 MB, free: 6.449 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.03085, allocations: 183.2 kB / 396.4 MB, free: 6.266 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002658/0.03111, allocations: 346.3 kB / 396.7 MB, free: 5.863 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.0009273/0.03204, allocations: 0.8361 MB / 397.5 MB, free: 4.953 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.03205, allocations: 3.938 kB / 397.5 MB, free: 4.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002552/0.0346, allocations: 1.315 MB / 398.9 MB, free: 3.609 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.03464, allocations: 52.03 kB / 398.9 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.03465, allocations: 0 / 398.9 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002379/0.03703, allocations: 1.401 MB / 400.3 MB, free: 2.148 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002954/0.03732, allocations: 103.8 kB / 400.4 MB, free: 2.047 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004682/0.04201, allocations: 3.32 MB / 403.7 MB, free: 14.63 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003556/0.04236, allocations: 47.95 kB / 403.8 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-05/0.04243, allocations: 35.97 kB / 403.8 MB, free: 14.55 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: 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.0002354/0.04267, allocations: 214.6 kB / 404 MB, free: 14.33 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001222/0.04279, allocations: 83.56 kB / 404.1 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00277/0.04556, allocations: 1.181 MB / 405.3 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.04556, allocations: 8 kB / 405.3 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.04557, allocations: 3.984 kB / 405.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.04558, allocations: 3.984 kB / 405.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003842/0.04942, allocations: 1.971 MB / 407.3 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.04942, allocations: 0 / 407.3 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.04966, allocations: 67.91 kB / 407.3 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002673/0.05233, allocations: 1.412 MB / 408.8 MB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.111e-05/0.05238, allocations: 15.98 kB / 408.8 MB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004968/0.05735, allocations: 3.297 MB / 412.1 MB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.05735, allocations: 4 kB / 412.1 MB, free: 6.082 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003034/0.06038, allocations: 1.513 MB / 413.6 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002207/0.0606, allocations: 119.5 kB / 413.7 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.381e-05/0.0607, allocations: 27.98 kB / 413.7 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003386/0.06104, allocations: 51.94 kB / 413.8 MB, free: 4.316 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/0.06123, allocations: 88.23 kB / 413.9 MB, free: 4.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.209e-05/0.06127, allocations: 15.98 kB / 413.9 MB, free: 4.215 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001863/0.06146, allocations: 275 kB / 414.1 MB, free: 3.945 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06146, allocations: 0 / 414.1 MB, free: 3.945 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006976/0.06216, allocations: 224 kB / 414.4 MB, free: 3.727 MB / 330.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.0001617/0.06232, allocations: 124.7 kB / 414.5 MB, free: 3.598 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.06359, allocations: 0.9689 MB / 415.5 MB, free: 2.594 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.06359, allocations: 0 / 415.5 MB, free: 2.594 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.06484, allocations: 0.6502 MB / 416.1 MB, free: 1.926 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005388/0.06538, allocations: 183.7 kB / 416.3 MB, free: 1.754 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002636/0.06801, allocations: 1.398 MB / 417.7 MB, free: 304 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001527/0.06816, allocations: 211 kB / 417.9 MB, free: 72 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.06833, allocations: 64.95 kB / 418 MB, free: 8 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002638/0.06859, allocations: 194.1 kB / 418.1 MB, free: 15.82 MB / 346.7 MB Notification: Performance of SimCode: time 8.11e-07/0.06859, allocations: 4 kB / 418.1 MB, free: 15.81 MB / 346.7 MB Notification: Performance of Templates: time 0.02056/0.08915, allocations: 16.97 MB / 435.1 MB, free: 14.94 MB / 362.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.507326955907047]