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.0008591/0.0008591, allocations: 75.75 kB / 21.69 MB, free: 2.859 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.0009839/0.0009839, allocations: 166.2 kB / 24.99 MB, free: 8.883 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.9974/0.9974, allocations: 177.1 MB / 205.3 MB, free: 5.613 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.2294/0.2294, allocations: 29.41 MB / 291.2 MB, free: 2.512 MB / 266.7 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.492e-06/1.492e-06, allocations: 0 / 369.6 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.805e-05/1.955e-05, allocations: 2.312 kB / 369.6 MB, free: 11.32 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.01267/0.01269, allocations: 6.636 MB / 376.3 MB, free: 4.648 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002598/0.01529, allocations: 1.64 MB / 377.9 MB, free: 3.004 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000369/0.01565, allocations: 43.62 kB / 377.9 MB, free: 2.961 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005529/0.01621, allocations: 154.7 kB / 378.1 MB, free: 2.809 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008771/0.01708, allocations: 457.3 kB / 378.5 MB, free: 2.359 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006434/0.01773, allocations: 367.2 kB / 378.9 MB, free: 2 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001155/0.01888, allocations: 1.519 MB / 380.4 MB, free: 488 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002953/0.01918, allocations: 246.2 kB / 380.7 MB, free: 244 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008358/0.02001, allocations: 0.826 MB / 381.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006764/0.02069, allocations: 0.6313 MB / 382.1 MB, free: 14.78 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.02079, allocations: 96 kB / 382.2 MB, free: 14.68 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.02091, allocations: 100 kB / 382.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002932/0.02121, allocations: 446.9 kB / 382.7 MB, free: 14.15 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002754/0.02148, allocations: 343.3 kB / 383.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006912/0.02217, allocations: 0.8101 MB / 383.9 MB, free: 13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.02218, allocations: 0 / 383.9 MB, free: 13 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.02218, allocations: 0 / 383.9 MB, free: 13 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.02219, allocations: 4 kB / 383.9 MB, free: 13 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.001499/0.02369, allocations: 1.341 MB / 385.2 MB, free: 11.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.02372, allocations: 11.98 kB / 385.2 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.0239, allocations: 164.4 kB / 385.4 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008292/0.02473, allocations: 0.6786 MB / 386.1 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003462/0.02508, allocations: 0.7253 MB / 386.8 MB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.731e-05/0.02516, allocations: 64.38 kB / 386.9 MB, free: 9.785 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008423/0.02601, allocations: 0.7208 MB / 387.6 MB, free: 9.012 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.02602, allocations: 0 / 387.6 MB, free: 9.012 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-05/0.0261, allocations: 31.98 kB / 387.6 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.228e-05/0.02617, allocations: 41.28 kB / 387.7 MB, free: 8.941 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000653/0.02682, allocations: 419.4 kB / 388.1 MB, free: 8.531 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002589/0.02941, allocations: 3.023 MB / 391.1 MB, free: 5.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006799/0.03009, allocations: 477.1 kB / 391.6 MB, free: 4.922 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004503/0.03054, allocations: 312.8 kB / 391.9 MB, free: 4.609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.736e-05/0.03058, allocations: 8.5 kB / 391.9 MB, free: 4.598 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004204/0.031, allocations: 379.9 kB / 392.2 MB, free: 4.203 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 1.983e-06/0.031, allocations: 0 / 392.2 MB, free: 4.203 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.005896/0.0369, allocations: 3.103 MB / 395.3 MB, free: 1.062 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.03695, allocations: 93.53 kB / 395.4 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000317/0.03727, allocations: 442.6 kB / 395.9 MB, free: 0.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.621e-05/0.03731, allocations: 41.7 kB / 395.9 MB, free: 464 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.0375, allocations: 383.5 kB / 396.3 MB, free: 76 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/0.03765, allocations: 210.3 kB / 396.5 MB, free: 15.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/0.03781, allocations: 135.9 kB / 396.6 MB, free: 15.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.03797, allocations: 0.543 MB / 397.2 MB, free: 15.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003338/0.03831, allocations: 235.2 kB / 397.4 MB, free: 14.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003486/0.03866, allocations: 394.5 kB / 397.8 MB, free: 14.48 MB / 378.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.001243/0.0399, allocations: 0.9954 MB / 398.8 MB, free: 13.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.0399, allocations: 0 / 398.8 MB, free: 13.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002313/0.04222, allocations: 1.44 MB / 400.2 MB, free: 11.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.055e-05/0.04226, allocations: 53.69 kB / 400.3 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.04226, allocations: 8 kB / 400.3 MB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002138/0.0444, allocations: 1.432 MB / 401.7 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000246/0.04465, allocations: 115.8 kB / 401.8 MB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004194/0.04884, allocations: 3.491 MB / 405.3 MB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.04911, allocations: 59.94 kB / 405.4 MB, free: 6.672 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.416e-05/0.04916, allocations: 43.97 kB / 405.4 MB, free: 6.629 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.0001902/0.04935, allocations: 218.4 kB / 405.6 MB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.43e-05/0.04945, allocations: 75.67 kB / 405.7 MB, free: 6.328 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00228/0.05173, allocations: 1.279 MB / 407 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.05173, allocations: 8 kB / 407 MB, free: 5.027 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.05174, allocations: 0 / 407 MB, free: 5.027 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.05174, allocations: 3.984 kB / 407 MB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003064/0.05481, allocations: 2.073 MB / 409.1 MB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.05481, allocations: 4 kB / 409.1 MB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002145/0.05503, allocations: 79.89 kB / 409.1 MB, free: 2.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002099/0.05713, allocations: 1.446 MB / 410.6 MB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.353e-05/0.05717, allocations: 19.98 kB / 410.6 MB, free: 1.332 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004003/0.06117, allocations: 3.459 MB / 414.1 MB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.06117, allocations: 0 / 414.1 MB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002598/0.06377, allocations: 1.65 MB / 415.7 MB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.06396, allocations: 143.5 kB / 415.9 MB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.418e-05/0.06404, allocations: 31.98 kB / 415.9 MB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.06429, allocations: 63.92 kB / 416 MB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002459/0.06454, allocations: 168.2 kB / 416.1 MB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.298e-05/0.06457, allocations: 27.92 kB / 416.1 MB, free: 11.63 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001718/0.06474, allocations: 283.1 kB / 416.4 MB, free: 11.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.06474, allocations: 0 / 416.4 MB, free: 11.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000497/0.06524, allocations: 224 kB / 416.6 MB, free: 11.14 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.0001317/0.06537, allocations: 123.2 kB / 416.8 MB, free: 11.01 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.06683, allocations: 1.067 MB / 417.8 MB, free: 9.906 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.06683, allocations: 0 / 417.8 MB, free: 9.906 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009516/0.06778, allocations: 0.6852 MB / 418.5 MB, free: 9.199 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004918/0.06827, allocations: 173.7 kB / 418.7 MB, free: 9.039 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.07027, allocations: 1.423 MB / 420.1 MB, free: 7.555 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001622/0.07043, allocations: 211 kB / 420.3 MB, free: 7.328 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002037/0.07064, allocations: 100.9 kB / 420.4 MB, free: 7.227 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.477e-05/0.07073, allocations: 44.5 kB / 420.5 MB, free: 7.18 MB / 394.7 MB Notification: Performance of SimCode: time 8.41e-07/0.07073, allocations: 0 / 420.5 MB, free: 7.18 MB / 394.7 MB Notification: Performance of Templates: time 0.01591/0.08664, allocations: 15.78 MB / 436.2 MB, free: 7.465 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.8528566299937665]