Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.002096/0.002096, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002679/0.002679, allocations: 211.5 kB / 24.48 MB, free: 3.938 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 / 258.2 MB, free: 7.789 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.1871/0.1871, allocations: 38.55 MB / 353.2 MB, free: 12.34 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.InverterAvToGrid,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.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,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.InverterAvToGrid") [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: 70.39 kB / 493.7 MB, free: 4.227 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2828, allocations: 62.47 MB / 0.5432 GB, free: 432 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007727/0.2905, allocations: 5.837 MB / 0.5489 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002673/0.2932, allocations: 1.358 MB / 0.5502 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004086/0.2936, allocations: 35.94 kB / 0.5502 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005446/0.2941, allocations: 132.1 kB / 0.5504 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009912/0.2951, allocations: 399.2 kB / 0.5507 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005901/0.2957, allocations: 195.3 kB / 0.5509 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.2969, allocations: 0.9214 MB / 0.5518 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002994/0.2972, allocations: 169.5 kB / 0.552 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007678/0.298, allocations: 425.2 kB / 0.5524 GB, free: 9.461 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007288/0.2987, allocations: 476.2 kB / 0.5528 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.784e-05/0.2988, allocations: 46.72 kB / 0.5529 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.2989, allocations: 48.19 kB / 0.5529 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002833/0.2992, allocations: 267.1 kB / 0.5532 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003328/0.2995, allocations: 280.6 kB / 0.5535 GB, free: 8.859 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000786/0.3003, allocations: 0.6721 MB / 0.5541 GB, free: 8.414 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3003, allocations: 1.094 kB / 0.5541 GB, free: 8.414 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3003, allocations: 0 / 0.5541 GB, free: 8.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.3003, allocations: 0 / 0.5541 GB, free: 8.414 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001776/0.3021, allocations: 0.8969 MB / 0.555 GB, free: 7.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.3021, allocations: 13.89 kB / 0.555 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.3023, allocations: 77.33 kB / 0.5551 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/0.3034, allocations: 489.2 kB / 0.5555 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.974e-05/0.3034, allocations: 41.47 kB / 0.5556 GB, free: 7.305 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.243e-05/0.3035, allocations: 52.17 kB / 0.5556 GB, free: 7.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.3045, allocations: 0.6313 MB / 0.5562 GB, free: 6.715 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.3046, allocations: 0 / 0.5562 GB, free: 6.715 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.627e-05/0.3046, allocations: 23.98 kB / 0.5563 GB, free: 6.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000109/0.3047, allocations: 36.97 kB / 0.5563 GB, free: 6.656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000861/0.3056, allocations: 0.5035 MB / 0.5568 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003359/0.309, allocations: 2.004 MB / 0.5588 GB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00086/0.3098, allocations: 449.2 kB / 0.5592 GB, free: 3.617 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006891/0.3105, allocations: 326.8 kB / 0.5595 GB, free: 3.293 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.3105, allocations: 15.89 kB / 0.5595 GB, free: 3.277 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.655e-05/0.3106, allocations: 38.5 kB / 0.5595 GB, free: 3.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.084e-06/0.3106, allocations: 0 / 0.5595 GB, free: 3.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003525/0.3141, allocations: 1.604 MB / 0.5611 GB, free: 1.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.385e-05/0.3142, allocations: 85.11 kB / 0.5612 GB, free: 1.488 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004729/0.3146, allocations: 405.8 kB / 0.5616 GB, free: 1.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.3147, allocations: 29.7 kB / 0.5616 GB, free: 1.047 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002364/0.3149, allocations: 304.9 kB / 0.5619 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.3151, allocations: 170.5 kB / 0.5621 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.3152, allocations: 98.3 kB / 0.5622 GB, free: 484 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.3154, allocations: 358.8 kB / 0.5625 GB, free: 116 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003332/0.3158, allocations: 189.2 kB / 0.5627 GB, free: 15.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004216/0.3162, allocations: 312.5 kB / 0.563 GB, free: 15.57 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.002713/0.3189, allocations: 1.158 MB / 0.5641 GB, free: 14.37 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3189, allocations: 0 / 0.5641 GB, free: 14.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001273/0.3202, allocations: 0.6991 MB / 0.5648 GB, free: 13.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.3202, allocations: 8 kB / 0.5648 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3202, allocations: 4.469 kB / 0.5648 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004076/0.3206, allocations: 144.7 kB / 0.5649 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000476/0.3211, allocations: 107.8 kB / 0.565 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003209/0.3243, allocations: 2.46 MB / 0.5674 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003517/0.3247, allocations: 24.12 kB / 0.5675 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.332e-05/0.3247, allocations: 23.98 kB / 0.5675 GB, free: 10.79 MB / 414.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: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003551/0.3251, allocations: 225.6 kB / 0.5677 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.3252, allocations: 51.67 kB / 0.5678 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/0.3264, allocations: 0.6541 MB / 0.5684 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.3264, allocations: 4 kB / 0.5684 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.3264, allocations: 4 kB / 0.5684 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3264, allocations: 3.984 kB / 0.5684 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002352/0.3287, allocations: 1.182 MB / 0.5696 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3287, allocations: 0 / 0.5696 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003649/0.3291, allocations: 71.89 kB / 0.5696 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004705/0.3296, allocations: 152.9 kB / 0.5698 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.442e-05/0.3296, allocations: 12.16 kB / 0.5698 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003122/0.3327, allocations: 2.481 MB / 0.5722 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.3327, allocations: 4 kB / 0.5722 GB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001599/0.3343, allocations: 0.9809 MB / 0.5732 GB, free: 4.754 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.3345, allocations: 47.61 kB / 0.5732 GB, free: 4.707 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.631e-05/0.3345, allocations: 16 kB / 0.5732 GB, free: 4.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002608/0.3348, allocations: 20.03 kB / 0.5733 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.055e-05/0.3349, allocations: 43.8 kB / 0.5733 GB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/0.3349, allocations: 23.98 kB / 0.5733 GB, free: 4.605 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003238/0.3352, allocations: 267.2 kB / 0.5736 GB, free: 4.348 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3352, allocations: 0 / 0.5736 GB, free: 4.348 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006675/0.3359, allocations: 148 kB / 0.5737 GB, free: 4.203 MB / 414.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000141/0.336, allocations: 107.2 kB / 0.5738 GB, free: 4.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.3373, allocations: 0.6298 MB / 0.5744 GB, free: 3.449 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3373, allocations: 0 / 0.5744 GB, free: 3.449 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007378/0.338, allocations: 438.4 kB / 0.5748 GB, free: 3.008 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007357/0.3387, allocations: 119.2 kB / 0.575 GB, free: 2.902 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002384/0.3411, allocations: 1.406 MB / 0.5763 GB, free: 1.441 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.3415, allocations: 325.2 kB / 0.5766 GB, free: 1.098 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.3416, allocations: 43.42 kB / 0.5767 GB, free: 1.055 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3416, allocations: 4 kB / 0.5767 GB, free: 1.051 MB / 414.1 MB Notification: Performance of Templates: time 0.0138/0.3554, allocations: 9.317 MB / 0.5858 GB, free: 7.746 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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: 8.887045735027641]